-
-
Save anonymous/0b97791211caed72be09ab7f206500ae 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
// the dependacie section of package.json
"dependencies": {
"@expo/vector-icons": "^6.3.1",
"expo": "^25.0.0",
"native-base": "^2.3.9",
"react": "16.2.0",
"react-native": "0.52.0",
"react-native-calendars": "^1.17.3",
"react-native-dash": "0.0.8",
"react-native-elements": "^0.19.0",
"react-native-modal": "^5.2.0",
"react-native-star-rating": "^1.0.9",
"react-navigation": "^1.4.0",
"react-redux": "^5.0.7",
"redux-saga": "^0.16.0"
}