React native:渲染器没有返回任何组件(UiKitten)

React native : Component nothing was returned from the render (UiKitten)

我有这个问题,我的代码运行良好,但如果我输入 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>
       </>
    );
  }

Disconnect函数中添加return

Disconnect = () => {
    return <TopNavigationAction icon={Quit} onPress={this.userChange}/>
}