All Questions
284 questions
0
votes
1
answer
31
views
React-Navigation v5 Redux
I have a react-native problem while trying to upgrade from react-navigation 4 to 5.
I have this at the bottom of my Settings component:
const ConnectedSettings = connectActionSheet(Settings);
const ...
-1
votes
1
answer
83
views
React Native Redux State Update Holds Navigation Call
I have two pages in my react native app:
Displays a list of data with ids and titles. By pressing on item, we should set an ID of current data type in redux and set state.current by finding an item ...
1
vote
0
answers
406
views
Testing with Jest in React Native Navigation with different Stacks depending on Redux State
I'm currently developing a React Native Expo app using Redux for state management and React Navigation for navigation. I'm trying to write Jest tests to ensure that the right screen is displayed based ...
0
votes
0
answers
248
views
How to avoid undisplayed screens to re-render in react-native?
In an react-native app, using react-navigation, screens that have been displayed stay mounted (which is normal with react-navigation).
But many of screens consume redux store data.
And when I update ...
1
vote
1
answer
123
views
React Navigation - Redux - Login Screen - Nested Navigators - Error when dispatching action
I'm having 2 navigators and I want to switch between them when I press the login Button.
But every time I dispatch an action via that login button, my application crashes.
And I don't understand why, ...
0
votes
1
answer
60
views
How to create react native project
I'm new to the react native platform. I'd like to create an app with bottom, stack, and drawer navigation.
I'm not sure which navigation is appropriate for the same react navigation (v4, v5, or v6).
I'...
1
vote
0
answers
99
views
after applying authentication flow in react navigation 6 this error is appearing
This is my ShopNavigator.js as you see there is authentication flow i have applied but it is showing this error even the screen name is corret. Does anyone know how to resolve this issue before it is ...
5
votes
1
answer
3k
views
Why is my navigation ref not ready in React Navigation 6 with Redux?
In React Navigation 6, my research shows that to navigate without a prop I should make a reference and use createNavigationContainerRef. I'm able to pass down the screen name to my dispatch but for ...
1
vote
0
answers
134
views
How to access redux action while using connect() and NavigationContainer
I'm working on a React Native project using Redux and NavigationContainer. I was using useSelector(), useDispatch() and everything was working fine.
To move forward, we have to use connect(...
3
votes
0
answers
319
views
How to conditionally change order of Screen in React-Navigation Stack Navigator without navigation prop?
I have skippable auth screens in my stack navigator, I am trying to achieve following scenarios:
how do I open Home screen on 'app open' if user has skipped auth flow.
while surfing app if user ...
0
votes
1
answer
201
views
Conditional navigation is not working after reload in react native
I have implemented conditional navigation, which is an alternative to switch navigation in react-navigation 5.
<Stack.Navigator
screenOptions={{
headerTintColor: '#fff',
...
0
votes
1
answer
568
views
Why is it bad to store react-navigation state in Redux
The documentation for react-navigation has a specific section Can I store the navigation state in Redux too?.
It says:
This is not possible. We don't support it because it's too easy to shoot ...
0
votes
1
answer
816
views
how to dispatch an action on react navigation custom tab bar component
I want to dispatch an action on of the buttons on custom my tab bar navigator and due to react navigation docs we can not use hooks in custom tab bar component
. Any one has an idea to do that?
0
votes
2
answers
69
views
What is the shortest way to add redux to react-navigation?
I'm integrating redux to my react-native application. Want to introduce Provider and to wrap screens in it. I'm using such constructions to register new screen:
Navigation.registerComponent('Login', ()...
1
vote
3
answers
528
views
When to use redux in React Native?
I'm trying to build an app, it has 3 Reducers
AccountDetails it holds all kind of user's products
GeneralData (eg. device's unique id, token, etc)
shopping carts
Me and my coworker currently ...