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
Using V4 with Redux getting the following error "Failed prop type: Invalid prop children of type array supplied to Provider, expected a single ReactElement."
The code is based off the doc/example
const ConnectedRouter = connect()(Router);
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.
*/
<ConnectedRouter>
<Scene key="root">
<Scene key="login" component={Login} initial={true} />
<Scene key="ResetPassword" component={ResetPassword} />
</Scene>
</ConnectedRouter>
</Provider>
);
}
}
The text was updated successfully, but these errors were encountered:
Nice, try to remove that comment about 'Breaking changes'! I've just added redux to Example without any problem, but reproduce your issue only after adding comment as child for Provider. Weird redux issue.
Using V4 with Redux getting the following error "Failed prop type: Invalid prop
children
of typearray
supplied toProvider
, expected a single ReactElement."The code is based off the doc/example
The text was updated successfully, but these errors were encountered: