You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I will add this to 'Breaking Changes for v4'. Could you use another syntax to define routes - without Actions.create, just as component. Check Example for more details.
I did that and now I'm getting the following error "Failed prop type: Invalid prop children of type array supplied to Provider, expected a single ReactElement."
I understand that provider needs to wrap everything
Here is my update app index.js file
render() {
return (
<Provider store={store} >
/* Breaking changes with react-native-router-flux all
routes need to be here and not in a separate routing file, check back for support.
*/
<Router>
<Scene key="root">
<Scene key="login" component={Login} />
<Scene key="ResetPassword" component={ResetPassword} />
</Scene>
</Router>
</Provider>
);
}
Hi,
I'm using the latest version, version 4 and I'm getting the following error
Unhandled JS Exception: _reactNativeRouterFlux.Actions.create is not a function
I'm trying to set up routing with redux, I'm sure I'm doing something wrong.
My router
app/index.js
The text was updated successfully, but these errors were encountered: