Skip to main content

All Questions

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
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
0 votes
1 answer
906 views

Calling a function in App from a different Screen component in React-Native

I'm developing an app for tuning pianos in react-native. I have an App.js and some screens implemented with react-navigation. The question is, how I can call a function in App.js from another Screen ...
chimera's user avatar
  • 21
0 votes
3 answers
224 views

The dashboard screen doesn't redirect after logging out - Redux, React navigation, React native

I am using redux with react native and react navigation. Everything works fine when I login but when i logout, it doesn't redirect me back to login screen. The application flow for backend is: Get ...
Kiran Ojha's user avatar
0 votes
1 answer
612 views

Upgrading from React Navigation V4 to V5 redux integration

I have just been given a project and I have been told to upgrade all the packages. Currently I am trying to upgrade react-navigation from V4 to V5 but I have hit a road block, I cannot figure out how ...
jasong554's user avatar
1 vote
1 answer
1k views

How to Use Multiple Array to store state values With Redux in React Native

Here I have use Redux to manage state value but is not working.. And i have two arrays to hold the state values but it is not showing any record i don't know why it is not working.. notesReducer.js ...
Windas_Coder's user avatar
0 votes
0 answers
101 views

How to use Redux in my React native Application

Here Home.js is Shows the both screen names And Here Student.js screen is show only student contact numbers and Teacher.js This is my full code.. And I have used navigation version 4 Navigation.js ...
Riyaz Mirza's user avatar
0 votes
1 answer
559 views

react-redux state undefined of props - functional component

In my redux application, I'm trying to use react-redux and react-navigation together : <Provider store={store}> <NavigationContainer> <Stack.Navigator> &...
Maifee Ul Asad's user avatar
0 votes
0 answers
42 views

Sharing redux store between more than 1 Navigation in react native

I need to share the same store between more than one navigator (Nested navigation) to be able to access the data from the two navigators. I have made a work-around to solve this issue but, I need to ...
Omar Diaa's user avatar
  • 286
0 votes
3 answers
55 views

react-native redux can't find react

I'm trying to implement react-redux in my react-native application. In my root index, I wrote : import {createStore} from 'redux'; import rootReducer from './src/reducers'; import {Provider} from '...
Danial's user avatar
  • 632
0 votes
1 answer
868 views

Redux state reverting to inital state when navigating backwards React Navigation

not sure if this expected behaviour but I'm trying to persist state between page navigation's using React Navigation, React Native and Redux Toolkit. So I have a full-screen horizontal scroll list ...
Harry's user avatar
  • 97

15 30 50 per page
1
2 3 4 5
7