Answers for "Stack.Screen remove header"

6

how to hide header in react navigation

<Stack.Navigator
  screenOptions={{
    headerShown: false
  }}
>
  <Stack.Screen name="route-name" component={ScreenComponent} />
</Stack.Navigator>
Posted by: Guest on October-04-2020
2

react native header style

function StackScreen() {
  return (
    <Stack.Navigator>
      <Stack.Screen
        name="Home"
        component={HomeScreen}
        options={{
          title: 'My home',
          headerStyle: {
            backgroundColor: '#f4511e',
          },
          headerTintColor: '#fff',
          headerTitleStyle: {
            fontWeight: 'bold',
          },
        }}
      />
    </Stack.Navigator>
  );
}
Posted by: Guest on April-27-2020

Code answers related to "Stack.Screen remove header"

Code answers related to "Javascript"

Browse Popular Code Answers by Language