Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

React native navigation

import { createStackNavigator } from '@react-navigation/stack';

const Stack = createStackNavigator();

function MyStack() {
  return (
    <Stack.Navigator>
      <Stack.Screen name="Home" component={Home} />
      <Stack.Screen name="Notifications" component={Notifications} />
      <Stack.Screen name="Profile" component={Profile} />
      <Stack.Screen name="Settings" component={Settings} />
    </Stack.Navigator>
  );
}
Source by reactnavigation.org #
 
PREVIOUS NEXT
Tagged: #React #native #navigation
ADD COMMENT
Topic
Name
4+2 =