react-native - 如何在 react-native-navigation v2 中为所有屏幕添加固定标题?
问题描述
我想知道是否可以在 react-native-navigation v2 中为所有屏幕添加固定标题。像这样的东西:
<View style={{flex: 1}}>
<View style={{flex: 0.3}}>
<Text>Fixed Banner</Text>
</View>
<View style={{flex: 0.7}}>
Navigation.setRoot({
root: {
bottomTabs: {
id: 'BottomTabsId',
children: [
{
component: {
name: 'SignIn',
options: {
bottomTab: {
fontSize: 12,
text: 'Sign In',
icon: require('./signin.png')
}
}
},
},
...
],
}
</View>
</View>
每当我将标签切换到另一个屏幕时,理想情况下我希望始终看到相同的横幅。
解决方案
Show the banner in an Overlay.
推荐阅读
- java - 如何存储/访问数据并防止地图中的竞争条件,java
- discord.js - Discord.js ${message} 在我尝试打印时不起作用
- python - 通过从 django 中的映射表中获取 id 从大小表中获取数据?
- arrays - NoMethodError:未找到数组的交集函数方法
- llvm - 在 llvm 中创建 BranchInst
- roku - 设置计划我的频道发布面临问题
- python - 如何在python中使用mysql函数
- android - ViewBinding 未在自定义视图中显示视图
- mysql - sql过滤多列
- python - 每个 ttk.Notebook 选项卡的单独外观?