Created
October 10, 2022 06:33
-
-
Save vaibhavgehani/68c904af5ab658b0d190c79a12a9ad00 to your computer and use it in GitHub Desktop.
This file contains 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 ChatScreen from './Screens/ChatScreen/ChatScreen'; | |
import PasswordScreen from './Screens/PasswordScreen/PasswordScreen'; | |
import { createStackNavigator } from '@react-navigation/stack' | |
import { NavigationContainer } from '@react-navigation/native'; | |
const Stack = createStackNavigator(); | |
const App = () => { | |
return ( | |
<NavigationContainer> | |
<Stack.Navigator initialRouteName='password'> | |
<Stack.Screen options={{title: 'Password'}} name='password' component={PasswordScreen} /> | |
<Stack.Screen options={{title: 'Chat', headerBackTitle: 'Logout'}} name='chat' component={ChatScreen} /> | |
</Stack.Navigator> | |
</NavigationContainer> | |
) | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment