Skip to main content

All Questions

0 votes
2 answers
2k views

How to find out what Stack you are in in React Native using react-navigation whatever screen you are in in your react native project?

I am currently using React Native for the first time and I am trying to render a component in a particular screen depending on the parent stack I am in as the particular screen is reused across ...
Caolan's user avatar
  • 11
1 vote
1 answer
1k views

React mobile nav won't close automatically when navigating to another route

I have built a mobile nav following this tutorial which is a fantastic tutorial, however I am stuck. The mobile nav dropdown opens and closes no problem when clicking on the nav icon. However, when I ...
Kirsty Richmond's user avatar
1 vote
1 answer
1k views

How to get the react navigator state outside the root react navigator?

This is the thing: I have a react-native application on mobile, and I'm trying to do some authority check action when the user has left my app and get back. I want to avoid doing an authority check on ...
Ray's user avatar
  • 85
2 votes
0 answers
477 views

React Native - React Navigation Drawer How to make a drawer inside drawer ? (Double Menu)

I'm looking a way to make a drawer inside a drawer like a double menu. Here is what I want to make it. https://dribbble.com/shots/2139038-Double-menu const drawerNavigatorConfig = { drawerType: "...
FreakyCoder's user avatar
2 votes
1 answer
1k views

react-navigation withNavigation returns undefined

In my react-native app, I have a component for my header with back button. It works except for when I click the back button and it gives me this error: undefined is not an object (evaluating this....
JAM's user avatar
  • 790
1 vote
1 answer
590 views

why we have multiple stackNavigators?

for example this code form react-navigation documentation for authentication: import { createSwitchNavigator, createStackNavigator, createAppContainer } from 'react-navigation'; // Implementation of ...
Rathma's user avatar
  • 1,323
1 vote
2 answers
2k views

React Native - this.setState is not a function

Technology used: React Native React Navigation Problem: this.setState is not a function. Code: Router.js export const Router = TabNavigator({ ColorPicker: { screen: ColorPicker }, Palette: { ...
rudolph schmitz's user avatar