How to restrict content when user is not logged in?

I’m working on a marketplace app and i want to hide the “my profile” and “add listing” tabs when the user is not logged in, and instead show a login/registration modal or page. How exactly would i do that?

I am not sure how your app screens are but usually there are 2 types of screens. A welcome screen which the user can see if they are not logged in and a home page which the users can see if they are logged in. On which screen do you have the navbar? Welcome or Home

My welcome screen was basically just registration, now ive changed it to be the home screen and another identical homescreen for when the user is logged in. Just have to sort out some small details now. Thanks btw, didnt even think about that.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.