Silva
Silva

Reputation: 80

How to hide some items from DrawerNavigator. I want that only a few appear

Also, I want to add a button to exit.

enter image description here

     <DrawerNavigatorItems
          {...props}
          itemsContainerStyle={{width: '100%'}}
      />

Upvotes: 1

Views: 49

Answers (2)

Yoel
Yoel

Reputation: 7985

button to exit

<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
    <DrawerNavigatorItems {...props} />
    <Button title={"exit"} onPress={() => {
        //do exit
    }} ></Button>
</View>

Upvotes: 1

LayTexas
LayTexas

Reputation: 645

Tipos:{
  screen:Tipos,
  navigationOptions:{
    title: 'Tipos',
    drawerLabel: ()=>null
  }
},

Upvotes: 2

Related Questions