在配置navigationOptions 時可以這樣,設置標題和圖片icon
navigationOptions:{ tabBarLabel:(({tintColor,focused})=>{ return ( <View> <Text style={(item.label=='計划')?styles.labelStyle:styles.noniconlabelStyle}>{item.label}</Text> </View> ) }), tabBarIcon:(({tintColor,focused})=> { return( <View> <Image source={item.icon} style={(item.label=='計划')?styles.iconStyle:styles.noniconStyle} /> </View> ) }) }

react-navigation 的
createMaterialTopTabNavigator
API 可參考 官網 https://reactnavigation.org/docs/zh-Hans/material-top-tab-navigator.html
也可參考:https://www.jianshu.com/p/86f37fb7fd02 中文介紹的很詳細
