I want the app to check if there’s a user logged in (firebase authentication). If there is, navigate to one page (react navigation v5), if there isn’t, to another. I have the following code: In App.js In Loading.js I get an error which says: TypeError: undefined is not an object (evaluating ‘_this.props.navigation.navigate’) Answer The navigation prop is not passed into
Tag: react-navigation-v5
React Navigation V5 Hide Bottom Tab in Specific Screens
I am creating a React Native app using React Navigation version 5, and I have a bottom tab navigator with a stack navigator nested inside each screen of the tab navigator. I only want the bottom tab bar to show when on the first page of each stack navigator. Here is a snack that displays my app’s basic navigation functionality: