当我想在反应导航中使用选项卡切换页面时,活动选项卡中什么也没有发生,但是选项卡历史记录可以更改页面。
我已经做到了:
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')}}>
我希望反应导航上的标签可以切换屏幕。