-
-
Save simo97/fd5b2b436f6674bdb21d4e570095f90f to your computer and use it in GitHub Desktop.
DrawerError
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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