I created a component class with my splash
screen. And I want that after a few seconds, the navigation goes to the other screen, I already have configured the navigation
const SimpleApp = StackNavigator({ Home: {screen: BrunoDantas},
Chat: {screen: ChatScreen},
});
the sprint
class, I tried the following to see if it was already redirecting:
render() {
const { navigate } = this.props.navigation;
return (
<View style={styles.container}>
<View style={styles.logo}>
<Image source={require('./img/logoimg.png')} style={styles.imglogo} />
<Image source={require('./img/logonome.png')} style={styles.imgnome} />
</View>
</View>
);
navigate('chat'); }