Dynamic display DrawItem by Login Status

Hey Guys,

Needs help here.

I’m using DrawerNavigation(StackNavigation) sample showed in https://github.com/expo/ex-navigation.
And one of the DrawerNavigationItem will lead me to the login page. Once user logged in, I want to refresh/reload the DrawerNavigationItems which some items are only available to login user. Something like :

DrawerNavigationItem 1 => Login page => Main page(after Login), here I want to refresh to show Drawer Item 3 and 4.
DrawerNavigationItem 2 => xxx page
DrawerNavigationItem 3 (hidden if user not login) => xxx page
DrawerNavigationItem 4 (hidden if user not login)=> xxx page

How can I do this?


Any help here? :tired_face::tired_face::tired_face::tired_face::tired_face::tired_face::tired_face: