In my main app page:
const App = StackNavigator({ sign-up: { screen: Signup }, });
on Signup page:
const { navigate } = this.props.navigation;
<Text onPress={() => navigate(‘sign-up’)} Sign Up</Text>
What am I missing?
Use it like mentioned in this github issue comment:
const SimpleApp = StackNavigator({
Home: { screen: HomeScreen },
});
AppRegistry.registerComponent('SimpleApp', () => SimpleApp);
-in name or variables, it can be signUp