Navigation of screen based on use rrole in react native mobile application

I am working on the mobile application on react native framework, I could not navigate into different screens based on the user role, can anyone please help me to do this with some source codes. I am a beginner in react native and will be really thankful if someone helps me to overcome this issue.

Looking forward to your help Thank you

1 answer

  • answered 2021-05-03 19:13 docmurloc

    You can use this code from the react navigation as an example.

    It only checks if you have an access_token but you can adapt it by checking the propriety of your user to select the screen available to him.

    An example with a project.