how i add icon to drawer navigation item using react native ?
const AppDrawerNavigator = createDrawerNavigator({
'Rendez Vous' : RendezVous,
'Parcours de soin': ParcoursDeSoin,
'Ordonnances' : Ordonnances,
'Analyses' : Analyses,
'Profil' : Profil,
'A Propos': APropos,
'Logout ': Login
Under your login screen route config, use drawerIcon
under navigationOptions
to add your icon
Login: {
screen: Login,
navigationOptions: {
drawerIcon: ({ tintColor }) => (
<Icon name="ios-home" size={20} color={tintColor} />
),
},
},
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.