react-native - react-navigation 如何设置背景颜色
问题描述
如何在此图像中使角度变黑?
我想在导航标题上扩展黑色背景
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerTitleAlign: 'center',
activeTintColor: 'purple',
inactiveTintColor: 'gray',
headerTintColor: '#fff',
headerStyle: {
backgroundColor: 'rgba(128, 0, 128, 10)',
borderBottomLeftRadius: 13,
borderBottomRightRadius: 13,
}}}>
<Stack.Screen
options={{headerShown: false}}
name='Main' component={MainTab}/>
<Stack.Screen name='Photo' component={PhotoScreen}/>
</Stack.Navigator>
</NavigationContainer>
解决方案
推荐阅读
- javascript - PrimeFaces Extensions CKEditor:无法访问自定义配置
- c - 使用 gcc 编译时 -ffreestanding 和 -nostdlib 的区别
- node.js - Mongodb - 使用 $regex 运算符查找包含数组中值的所有文档
- java - 解压hadoop兼容的snappy文件
- python - 如何使用 NLTK 标记包含标点符号的单词
- firebase - 在 Firestore 中存储(可能)巨大列表的最佳方式是什么?
- javascript - TweetNaCl TypeError:意外类型,使用 Uint8Array
- excel - 对 UDF 使用数组求和
- angular - 如何在 Angular 项目中引用 environment.ts 文件中的其他环境属性?
- ios - 我可以在不向 App Store 添加版本的情况下添加新的 TestFlight 版本吗?