Skip to content

Instantly share code, notes, and snippets.

@vaibhavgehani
Created October 10, 2022 03:19
Show Gist options
  • Save vaibhavgehani/7d3b1af56c672bef6e6136893b2baf6e to your computer and use it in GitHub Desktop.
Save vaibhavgehani/7d3b1af56c672bef6e6136893b2baf6e to your computer and use it in GitHub Desktop.
import { createStackNavigator } from '@react-navigation/stack'
const Stack = createStackNavigator();
const RootNavigator = () => {
return (
<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>
);
}
export default RootNavigator;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment