Skip to content

Instantly share code, notes, and snippets.

@vaibhavgehani
Created October 10, 2022 06:33
Show Gist options
  • Save vaibhavgehani/68c904af5ab658b0d190c79a12a9ad00 to your computer and use it in GitHub Desktop.
Save vaibhavgehani/68c904af5ab658b0d190c79a12a9ad00 to your computer and use it in GitHub Desktop.
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