I think my entry point is index.js which then calls the App.js.
Here is the index.js code:
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
Then the main working code is in App.js
what should i do?
I got the problem. Actually its not working in case when I use react-navigatin stack navigator, when I remove the stack navigator, it's working.
How to use it along with stack navigator?
I think my entry point is index.js which then calls the App.js.
Here is the index.js code:
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
Then the main working code is in App.js
what should i do?
See github.com/ryohlan/react-native-pl...
The diff is only that from initialize.
I got the problem. Actually its not working in case when I use react-navigatin stack navigator, when I remove the stack navigator, it's working.
How to use it along with stack navigator?
Pass App.js props to react-navigation root component. it should be worked.
Thanks for the quick response. I am trying to pass the initial props to first scene.
Great post !!
How can we pass App.js props to react-navigation root component?