Reputation: 894
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?
Upvotes: 1
Views: 205
Reputation: 76
Use it like mentioned in this github issue comment:
const SimpleApp = StackNavigator({
Home: { screen: HomeScreen },
});
AppRegistry.registerComponent('SimpleApp', () => SimpleApp);
Upvotes: 4