我正在使用堆栈导航器当我单击图像时,它默默地失败而没有给我任何错误!
render() {
if (this.state.imagenum >= 0){
if(this.state.Update){
return (
<View>
<TouchableOpacity activeOpacity = {.5} onPress = {()=>{this.props.navigation.navigate('LinksScreen')}} >
<FadeInView style={{width: 450, height: 500, backgroundColor: 'powderblue'}}>
<View>
<Image style = {{ width: 450, height: 500 }}
source = {{uri:Images[this.state.imagenum]}} />
</View>
</FadeInView>
</TouchableOpacity>
</View>
) } }
return(<View></View>)
}
我也尝试过
this.props.navigate('LinksScreen')