Questions tagged [react-native-router-flux]

react-native-router-flux is a routing package for react native based on new React Native Navigation API. It helps users to define all the routes in one central place and navigate and communicate between different screens in an easy way.

Official repository : link

621 questions
37
votes
4 answers

How to pass values to other component in React-Native-Router-Flux?

My code is: ... ... com1.js ... onPress={Actions.com2} I changed com1 to com2. But I need to pass values for the inputbox of Com1 to Com2. How can…
Eric Chan
  • 1,192
  • 4
  • 16
  • 30
20
votes
2 answers

React Native - why is this function executing?

I'm just starting to wrap my head around React Native and am using Redux for management of state, the NativeBase library for my UI components and react-native-router-flux is handling navigation between views. Currently I'm building a basic list…
17
votes
3 answers

Router state not being persisted in react-native with redux

I have the following redux configuration in react-native using react-native-router-flux and redux-persist. I want to retrieve the last current route on refresh, however the route stack is being overwritten on reload. This is the reducers/index.js…
jsdario
  • 6,477
  • 7
  • 41
  • 75
15
votes
4 answers

React Native JSON.stringify cannot serialize cyclical structures

We're building a RN app (RN0.37), and we're running into an issue where when the app is run, we get a "TypeError: JSON.stringify cannot serialize cyclic structures". Nothing of relevance has changed on the API responses, and the issues went away…
Vicente Opaso
  • 151
  • 1
  • 1
  • 5
15
votes
1 answer

Synthetic scene stack (history) with React Native Router Flux

Is there any way how to synthetically define scene stack (history) with React Native Router Flux? Let's say I have an app, where the user can naturally navigate from A –> B –> C. I'd like to initiate app on scene C, which has the same history as…
11
votes
4 answers

how to fix currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput

I use react native, and react-native-router-flux for navigation when I want to move screen, an error appears "currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput" but the screen still moved with the…
Anang Ma'ruf
  • 185
  • 1
  • 3
  • 8
9
votes
5 answers

how to style react-native-router-flux?

I am using react-native-router-flux 4.0.0-beta.17 for my learning project. I need to customize the header. for instance the background color, the title alignment, etc. I couldn't find a good document about it. One of them had something like …
farmcommand2
  • 1,418
  • 1
  • 13
  • 18
8
votes
6 answers

@React-native-community/react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue these steps: *Run 'react-native link

I just created the app with "react-native init NameProject" and had a Base directory that I use constantly, so when I inserted it, I installed the dependencies and link, it happens to me ... I already deleted the "node_modules" directory,…
8
votes
0 answers

keep React-native webview mounted

I am working on an app that will have a web content, living in a webview and some other content and views built using react-native. I am planning to use Webview that react-native provides. I am thinking about the life cycle of the application. I…
fkilaiwi
  • 290
  • 1
  • 8
8
votes
2 answers

react-native-router-flux warning: Key is already defined

The following is the Android log output when the React Native app is started for a while before disconnecting it from the Meteor (DDP) server by killing the Meteor server. Using console.log(" render") to indicate when the render function of…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
8
votes
2 answers

React Native Router Flux: navigate from main scene to child

Version react-native-router-flux v3.35.0 react-native v0.31 I have few scenes. one of scenes have few sub-scenes. how can i navigate to one of sub-scenes from one of main scenes? Example :
7
votes
0 answers

How to implement react-native-material-bottom-navigation with React Native Router Flux

I'm trying to implement react-native-material-bottom-navigation component with React Native Router Flux. I've tried to use this component with RNRF but it doesn't work as I expect it should do it. I placed the BottomNavigation in each screen but…
7
votes
5 answers

ComponentWillMount warning

I am creating a layout with inside. I am getting to this scene from another. So at the beginning another layout is rendered. After i go to the second scene (with TextInput tag) i obtain warnings such as: componentWillMount is deprecated and will…
7
votes
2 answers

How to set initial scene in react-native-router-flux with checking the state of the user?

How to set initial scene in react-native-router-flux based upon the user logged in state. Here is my code that I want to achieve this functionality. I want scene 2 if user logged in and scene 1 if user not logged in. I'm facing an issue with this…
Shubham
  • 740
  • 12
  • 33
7
votes
4 answers

Duplicate module name: react-native-vector-icons

When I install NativeBase and React-Native-Router-Flux in my react-native project I get this error: Failed to build DependencyGraph: @providesModule naming collision: Duplicate module name: react-native-vector-icons Paths:…
David Vittori
  • 1,146
  • 1
  • 13
  • 30
1
2 3
41 42