Answers for "react native sharing common options across screens"

0

react native sharing common options across screens

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

Code answers related to "react native sharing common options across screens"

Code answers related to "Javascript"

Browse Popular Code Answers by Language