Tab 的三个首页,增加顶部图标
新建src/navigation/options/HeaderButtonsOption.js
文件
import * as React from 'react';
import SimpleLineIcons from 'react-native-vector-icons/SimpleLineIcons';
import Colors from '../../constants/Colors';
const HeaderButtonsOption = navigation => {
return {
headerLeft: () => (
<SimpleLineIcons
name="bell"
size={20}
color={Colors.headerButton}
onPress={() => navigation.navigate('InformationStack')}
...