Skip to content

Instantly share code, notes, and snippets.

/.js

Created March 13, 2018 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/0b97791211caed72be09ab7f206500ae to your computer and use it in GitHub Desktop.
Save anonymous/0b97791211caed72be09ab7f206500ae 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>
)
@simo97
Copy link

simo97 commented Mar 13, 2018

// 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"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment