Skip to content

Instantly share code, notes, and snippets.

@simo97
Forked from anonymous/.js
Created March 13, 2018 00:25
Show Gist options
  • Save simo97/fd5b2b436f6674bdb21d4e570095f90f to your computer and use it in GitHub Desktop.
Save simo97/fd5b2b436f6674bdb21d4e570095f90f to your computer and use it in GitHub Desktop.
DrawerError
// the navigator
const AppStack = DrawerNavigator({
Home: HomeView,
Favoris: FavorisView,
RendezVous: RdvView,
Agenda:AgendaView ,
Aide: AideView,
Parametres:SettingView,
ProfilePrestataire: ProfilePView,
ListPrestataires: ListrestataireView,
Test: UITester,
},{
initialRouteName: 'Home',
headerMode: 'screen',
contentOptions: {
activeTintColor: 'red'
},
contentComponent: PrestataireDrawer,
})
// the contentComponent
const PrestataireDrawer = (props) => (
<ScrollView alwaysBounceVertical={false}>
<SafeAreaView forceInset={{ top: 'always', horizontal: 'never' }}>
<DrawerItems {...props} />
</SafeAreaView>
</ScrollView>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment