Skip to content

Instantly share code, notes, and snippets.

@joennlae
Created February 12, 2019 09:37
Show Gist options
  • Save joennlae/afd82b44fa99cd9f1a1f5cbcbcbf5e4e to your computer and use it in GitHub Desktop.
Save joennlae/afd82b44fa99cd9f1a1f5cbcbcbf5e4e to your computer and use it in GitHub Desktop.
const navigationobject = createDrawerNavigator({
'Home': HomeScreen,
'News': NewsScreen,
'Startliste': StartlistScreen,
'Liveresultate': LiveScreen,
'Livestream': StreamScreen,
'Strecke': StreckenScreen,
'Zeitplan': {
screen: ZeitScreen,
navigationOptions: () => ({
drawerLabel: null
})
},
'Informationen': InfoScreen,
// 'Photobooth': FotofilterScreen,
'Sponsoren': SponsorenScreen,
// 'Über': AboutScreen,
// 'Runningcoach': RunningScreen,
}, {
contentComponent: (props) => (
<ScrollView>
<View>
<Image source={require('./imghome/top.png')} style={styles.fullWidth} />
</View>
<DrawerItems {...props} />
</ScrollView>
),
drawerWidth: 300,
contentOptions: {
flex: 1,
activeTintColor: '#F40065',
inactiveTintColor: '#1B88EA',
itemsContainerStyle: {
marginVertical: 0,
},
iconContainerStyle: {
opacity: 1
},
items: {},
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment