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
Asked
Active
Viewed 109 times
0
-
React router is mainly used on react and not react native. You might want to add the tag "react" to your post – yoann84 Aug 14 '21 at 10:10
-
Are you building website or mobile app using React Native? – F.E Aug 14 '21 at 17:22
-
Did you find an answer? – AuthorProxy Apr 06 '22 at 11:32
1 Answers
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.

Lucas Gardini Dias
- 504
- 4
- 13