Stack
公共基础配置
新建src/navigation/options/CardOption.js
文件
import * as React from 'react';
import Colors from '../../constants/Colors';
import Ionicons from 'react-native-vector-icons/Ionicons';
import { Platform } from 'react-native';
// Card Stack 配置
const CardOption = (route, navigation) => ({
// 标题的样式
headerTitleStyle: {
fontWeight: '400',
color: Colors.headerTitle,
},
// 标题组件的颜色(自带返回箭头)
headerTintColor: Colors.primary,
// 安卓标题栏居中
hea...