Skip to main content

All Questions

1 vote
2 answers
867 views

Persisiting states when navigating between screens in react-native

I am using react native's createNativeStackNavigator to navigate between two screens, say screen A and Screen B. Each screen have their own states and also each have their own buttons that can change ...
JustDev's user avatar
  • 55
2 votes
2 answers
365 views

Navigate in react native in redux action

I have a registration form that after submission of which I want to navigate to other screen only if the request succeeds in the action file not in Component itself. I'm sending navigation as an ...
Yash Sharma's user avatar
0 votes
1 answer
382 views

React Native unmounted screen renders when Redux state changed

I'm using React Native with Redux. Currently i'm having two screens that uses same redux state. Two screen are on a stack navigation. There is a use effect call in the 1st screen that trigger when the ...
Shanu's user avatar
  • 159
1 vote
1 answer
46 views

how to nest navigation with react native?

here is my AppNavigator.js const StackNavigator = createStackNavigator( { LoginScreen: LoginScreen, RegisterScreen: RegisterScreen, Tabs:Tabs, Detail:...
Mustapha MAJED's user avatar
0 votes
3 answers
2k views

Navigate to other StackNavigator screen when press button on navbar

I'm pretty new to react and this is my first app. I have a stack navigator with 2 screens by now: MainMenu and Profile. While the user is in MainMenu, a button on top right corner is shown and I need ...
anonymus_rex's user avatar
0 votes
0 answers
48 views

react-native switch between two navigation components

I want to implement two types of navigations and switch between them. I got 5 pages in total. For the first visit, the user should go from page 1 to 5 in a unidirectional flow. For the second visit, ...
Daniel's user avatar
  • 53
0 votes
0 answers
129 views

Strategy to update previous screens in react native when new form entries added

I have a use case where I am using stack navigator. I have a homepage where I have some aggregated data and a list which are retrieved from an API. On clicking on a list item I move to a screen which ...
IN_DEV's user avatar
  • 41
0 votes
0 answers
151 views

react native : there is way to fix the error "Animated event must have event data" in react tab navigation 5?

I get "Animated event must have event data" error every time I move the tabs and I really do not understand what caused it and why. I would be happy to get some help with this. I have ...
shira's user avatar
  • 394
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: ...
Alan Doe's user avatar
  • 135
1 vote
1 answer
1k views

which one to use between navigation.navigate vs navigation.push under which conditions?

I know how navigation.navigate and navigation.push work in react-native. But I was wondering which is best to use under which conditions? I have been through their documentation react navigation but ...
Shahanshah Alam's user avatar
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 ...
biggest_boy's user avatar
3 votes
1 answer
704 views

null is not an Object (evaluating '_nativeInterface.default.getPhotos') in Cameraroll in react native

Using camera roll library from react native community and import correctly named. Below is the code for same using expo directory to init the project import { ActionSheetIOS, ListView, StyleSheet, ...
Swift's user avatar
  • 907
0 votes
1 answer
137 views

How to navigate from one stack or module to another stack or module

Appnavigation.js import { createAppContainer, createSwitchNavigator } from 'react-navigation'; import { createStackNavigator } from "react-navigation-stack"; import Splash from "./components/splace"; ...
krunal patel's user avatar
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.
reactNative94's user avatar
8 votes
3 answers
28k views

How to render svg image in React-Native?

Please try to help me! I need to render svg image from my folder "project/assest/images/test.svg" on android and ios view. I have tried : Solution 1 : <Image source={imagePath}></Image> ...
Kunvar Singh's user avatar
  • 1,885

15 30 50 per page