I try to update to RNN2 and implement this in App.js
Navigation.registerComponent("Screen.AlertScreen", () => AlertScreen);
Navigation.registerComponent("Screen.OverlayScreen", () => OverlayScreen);
Navigation.registerComponent("Screen.SigninScreen", () => SigninScreen, store, Provider);
export default () => Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
component: {
name: 'Screen.SigninScreen'
}
}
});
});
But I get this error: Objects are not valid as a React child (found: object with keys {remove}). If you meant to render a collection of children, use an array instead