Created
March 5, 2020 17:23
-
-
Save bogoslavskiy/bc0f770d58693bedfbbb501c1a5f2bfc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { createStackNavigator } from '@react-navigation/stack'; | |
import { MainStackParams } from './types/MainStackParams'; | |
import { ConversationScreen } from '../screens/ConversationScreen'; | |
const MainStack = createStackNavigator<MainStackParams>(); | |
export const MainStackScreens: React.FC = () => ( | |
<MainStack.Navigator | |
initialRouteName="Conversation" | |
screenOptions={{ | |
headerRightContainerStyle: { | |
right: 6, | |
}, | |
headerLeftContainerStyle: { | |
left: 6, | |
}, | |
}} | |
> | |
<MainStack.Screen | |
name="Conversation" | |
component={ConversationScreen} | |
/> | |
</MainStack.Navigator> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment