0

I'm using react-router-native to navigate between the "pages" of my app. The problem here is that I want to change the app-bar visibility depending on the user location. So, I need a way to watch and detect the route, so I can manipulate-it

1 Answers1

0

Solved!

To solve the problem I created a callback function inside my components, that returns whenever it loads. So with that I could just check a variable like isAtLogin ? (<Appbar />) : (<View />) to show and hide the appbar.