【发布时间】:2020-12-18 08:42:28
【问题描述】:
我有这个问题,我的代码运行良好,但如果我输入Accessory Right or Left,我会收到错误Nothing was returned from the render。在其他屏幕上它工作得很好,但在这个屏幕上它是不可能的。 UIKItten 有些东西我真的不明白。感谢您的帮助。
userChange = () => {
this.state.navigation.navigate('Login', {noAutoConnect : true});
}
Disconnect = () => {
<TopNavigationAction icon={Quit} onPress={this.userChange}/>
}
render() {
return (
<>
<TopNavigation style={{ borderWidth: 1 }} title='Acceuil' alignment='center' accessoryLeft = {this.Disconnect} />
<View style = {style.lay}>
<Button size = "giant" onPress = {this.navigateArticles} status = "danger"><Text>Accéder à mes Pdf</Text></Button>
</View>
</>
);
}
【问题讨论】:
标签: react-native react-native-ui-kitten