Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

navigation react native

function Home() {
  return (
    <Tab.Navigator>
      <Tab.Screen name="Feed" component={Feed} />
      <Tab.Screen name="Messages" component={Messages} />
    </Tab.Navigator>
  );
}

function App() {
  return (
    <NavigationContainer>
      <Stack.Navigator>
        <Stack.Screen
          name="Home"
          component={Home}
          options={{ headerShown: false }}
        />
        <Stack.Screen name="Profile" component={Profile} />
        <Stack.Screen name="Settings" component={Settings} />
      </Stack.Navigator>
    </NavigationContainer>
  );
}
Source by reactnavigation.org #
 
PREVIOUS NEXT
Tagged: #navigation #react #native
ADD COMMENT
Topic
Name
5+6 =