【发布时间】:2018-11-06 16:21:07
【问题描述】:
我正在使用 RN 0.55 和 RNN 2.1.2。当我在堆栈导航器的根屏幕上并向右滑动(后退操作)然后尝试通过推送导航时,所有用户交互锁定并且应用程序变得无响应。它不会崩溃,也不会抛出错误。它只是锁定。有没有人遇到过这种情况或有解决方法?
注意: .push 被非常快速地调用两次的可能性很小。不会去抖动,可以多次触发。
index.js 中的初始设置
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
stack: {
children: [
{
component: {
name: "search.ListsOfThings",
options: {
layout: {
orientation: ['portrait']
},
topBar: {
visible: false,
drawBehind: true
}
}
}
}
]
}
}
})
})
ListOfThings里面的push命令
Navigation.push(this.props.componentId, {
component: {
name: 'search.FoundThings',
passProps: {
things: data.foundThings
},
options: {
layout: {
orientation: ['portrait']
},
topBar: {
visible: false,
drawBehind: true
}
}
}
})
【问题讨论】:
标签: react-native react-native-navigation wix-react-native-navigation