All Questions
33 questions
0
votes
0
answers
297
views
In an Expo project : conditional navigation probleme
Hello Everyone I am a React-native beginner,
So what I want to achieve is to make the user go to the login Screenthe first time he opens the app once the login is successful want him to be redirected ...
1
vote
1
answer
2k
views
react native navigation useFocusEffect triggered before goBack
I use react-native-navigation and redux. I have a Stack Navigator with two screens.
The second screen uses some data stored in redux by the first screen.
The first screen has a function that resets ...
0
votes
2
answers
346
views
How to pass redux props and navigation parameters together?
I have successfully passed react native navigation parameters as follows:
PageOne = ({ navigation, route }) => {
const { itemId, otherParam } = route.params;
...
}
And I have done passing redux ...
0
votes
1
answer
3k
views
Passing useState props to <screen> in React Native with React Navigation
I'm building my first React Native app with react navigation (coming from a web react background).
Normally, I just useState for much of what I handle. For example, rendering a list of components ...
0
votes
1
answer
115
views
How to display a nested screen within another nested screen?
My app is currently set up as follows, and I want to show the Hub screen when the user presses on Study:
App.js:
import React, { Component } from 'react';
...
import { View } from 'react-native'
...
4
votes
0
answers
142
views
React Native Net Info it works once
native-info package like tutorial but just enters once and initial render, I implemented App.js is my initial rendering page and I use redux and react nativagiton to App.js return method I confuse why ...
1
vote
1
answer
1k
views
React Native. How to show screens according to the User Authentication status
I'm developing my first ever React Native App. I have created Login/SignUp screen and connect these with Firebase for Authentication. As well as i have some screen containing Drawers. I want that if ...
0
votes
1
answer
455
views
Redux dispatch in useEffect isn't syncronous
I want to navigate to App screen or Auth screen, depending on the isUser prop after fetching it from the server and updating the redux store.
My first component AuthLoading.js which looks like this:
...
1
vote
0
answers
51
views
React Native Navigation - Redux Integration with "react-native-navigation": "^6.8.0",
I am trying to setup react native navigation v6 with redux. In the react native navigation docs I can successfully set up my navigation and it works fine without redux added.
I have followed this link ...
0
votes
0
answers
1k
views
React Native Redux Authentication
I have a redux application which works well with react but I am trying to do the same with a react native app.
The flow of the app is that after successful login, token is stored in async storage and ...
0
votes
2
answers
757
views
Component is not showing changes after render in React Native
Newbie to React Native here. I am trying to use Redux for the mobile app for React Native. There are couple of components (app screens). I am choosing the item from one screen (has list of items) and ...
5
votes
2
answers
15k
views
How to add badge to tab-bar in react-native?
I am using the tabnavigator (createbottomBottomTabNavigator) and need help with the bage count using redux.
1
vote
3
answers
534
views
Can't connect components with mapDispatchToProps
I have React Native project with Redux and I'm trying to connect the actions to the components.
I have App.js file without index.js file.
This is how I implement Redux:
App.js:
import React from '...
0
votes
1
answer
136
views
AuthScreen component throwing update on unmount warning even though i have a _isMounted check
I'm using Wix react-native-navigation v3, I have an AuthScreen initially that contains listeners for keyboardShow and keyboardHide. And some methods bound to these two that would run a setState.
I ...
3
votes
1
answer
2k
views
How to wrap navigation stack (createSwitchNavigator) with Redux Provider?
I'm having an issue connecting to the redux store from my Settings.js page. The error I'm getting is:
"Invariant Violation: Invariant Violation: Could not find "store" in the context of "Connect(...