Advertisement
Guest User

Untitled

a guest
Mar 17th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import { View, Easing, Animated, Dimensions } from 'react-native';
  3. import { Button, Icon } from 'native-base';
  4. import { createStackNavigator } from 'react-navigation';
  5. import Home from '../pages/Home';
  6.  
  7. const AuthStack = createStackNavigator(
  8.     {
  9.         Home: { screen: Home, navigationOptions: () => ({ title: "G1 Ontario" }) }
  10.     },
  11.     {
  12.         defaultNavigationOptions: {
  13.             headerStyle: {
  14.                 backgroundColor: '#236FC7',
  15.                 elevation: 0
  16.             },
  17.             headerTintColor: '#fff',
  18.             headerTitleStyle: {
  19.                 color: '#fff',
  20.                 width: (Dimensions.get('window').width) / 2
  21.             },
  22.             headerRight: (
  23.                 <View style={{ flex: 1, flexDirection: 'row' }}>
  24.                     <Button transparent>
  25.                         <Icon name='search' size={25} style={{ color: '#fff' }} />
  26.                     </Button>
  27.                 </View>
  28.             ),
  29.         },
  30.         transitionConfig
  31.     });
  32.  
  33. export default AuthStack;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement