0
I created a component class with my screen splash
. And I want that after a few seconds, the navigation goes to the other screen, I have already configured the navigation
const SimpleApp = StackNavigator({ Home: {screen: BrunoDantas},
Chat: {screen: ChatScreen},
});
the class of sprint
, I tried the following to see if directly already redirected:
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'); }
Thank you very much!
– Leandro Ayala
@Leandroayala if the answer is correct and you managed to solve your problem, please mark it as right !
– Pedro Neri
Please correct the function name setTimeout, if it will not give
setTimeOut is not defined
– nbkhope