I am developing an app where there are 3 screens.
In the Home screen, there is a single button which is used for navigating to Screen A and Screen B.
I have a SharePoint List which is connected to this app which has information of all the users of this system. In that list, there is a column named Role. There are 2 types of role.
My query is- whenever an user clicks on the button in the Home, if the user is of Role A, it should navigate to Screen A and vice-versa. I am struggling with the function which I should write in the button. Is there anyone who is facing similar issue or have the answer to this?