我正在使用来自wix的React-Native-Navigation v2(非React-Navigation).我尝试禁用默认情况下呈现的topBar.
我使用以下选项并渲染bottomTabs:
Navigation.setDefaultOptions({
topBar: {
visible: false,
_height: 0,
drawBehind: true,
},
});
Run Code Online (Sandbox Code Playgroud)
topBar消失,但在bottomTabs的Tabs的初始打开时显示drawBehind动画.
有没有办法禁用topBar?
最好的祝福
更新
我在defaultOptions中添加了animate:false并删除了_height
Navigation.setDefaultOptions({
topBar: {
visible: false,
_height: 0,
drawBehind: true,
},
});
Run Code Online (Sandbox Code Playgroud)
这对我有用,并没有显示tabchange上的动画
android react-native-navigation wix-react-native-navigation react-native-navigation-v2
android ×1