Skip to main content

All 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 ...
Leonard's user avatar
  • 121
-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 ...
denistepp's user avatar
  • 530
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 ...
Asaraspo's user avatar
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 ...
Emilien's user avatar
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, ...
ChangNoi's user avatar
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'...
Vismaya's user avatar
  • 11
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 ...
kazim ali's user avatar
  • 137
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 ...
GʀᴜᴍᴘʏCᴀᴛ's user avatar
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(...
Hajar Alharazi's user avatar
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 ...
Prashant Sharma's user avatar
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', ...
Wahas Ali Mughal's user avatar
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 ...
YSK's user avatar
  • 658
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?
Amin's user avatar
  • 925
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', ()...
Sam Fisher's user avatar
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 ...
QrQr's user avatar
  • 181

15 30 50 per page
1
2 3 4 5
19