react native sharing common options across screens

Solutions on MaxInterview for react native sharing common options across screens by the best coders in the world

showing results for - "react native sharing common options across screens"
Matías
20 Aug 2017
1function StackScreen() {
2  return (
3    <Stack.Navigator
4      screenOptions={{
5        headerStyle: {
6          backgroundColor: '#f4511e',
7        },
8        headerTintColor: '#fff',
9        headerTitleStyle: {
10          fontWeight: 'bold',
11        },
12      }}
13    >
14      <Stack.Screen
15        name="Home"
16        component={HomeScreen}
17        options={{ title: 'My home' }}
18      />
19    </Stack.Navigator>
20  );
21}