我使用本机基本标签,但无法切换页面

时间:2019-07-12 09:13:30

标签: javascript react-native tabs react-native-navigation native-base

当我想在反应导航中使用选项卡切换页面时,活动选项卡中什么也没有发生,但是选项卡历史记录可以更改页面。

我已经做到了:

 if editingStyle == .delete{
    let locationToDelete = LocationsStorage.shared.locations.remove(at: indexPath.row)
    tableView.deleteRows(at: [indexPath], with: .fade)
    LocationsStorage.shared.deleteLocation(locationToDelete)
 }

这:

<ButtonGradient onPress = {() => {this.props.link.navigate ('vendorOrderDetailCOD')}}>
<ButtonGradient onPress = {() => {this.props.navigation.navigate ('vendorOrderDetailCOD')}}>

这是我的标签代码

<ButtonGradient onPress = {() => {this.props.link.navigate ('vendorOrderDetailCOD')}}> 

我希望反应导航上的标签可以切换屏幕。

0 个答案:

没有答案