react-native-vector-icons在tab中的使用代码示例

前端之家收集整理的这篇文章主要介绍了react-native-vector-icons在tab中的使用代码示例前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
...
import Ionicons from 'react-native-vector-icons/Ionicons';

...

const RootTabs = TabNavigator({
  Home: {
    screen: HomeScreen,
    navigationOptions{
      tabBarLabel: 'Home'Box-sizing: inherit; color: rgb(88,
      tabBarIcon{ tintColorBox-sizing: inherit; color: rgb(88, focused }) => (
        <Ionicons name={focused ? 'ios-home' 'ios-home-outline'} size{26style{{ color: tintColor } />
      )Box-sizing: inherit; color: rgb(88,
    Box-sizing: inherit; color: rgb(88,
  Box-sizing: inherit; color: rgb(88,
  Profile: ProfileScreen'Profile''ios-person' 'ios-person-outline'Box-sizing: inherit; color: rgb(88,
;

export default RootTabs;
原文链接:https://www.f2er.com/react/302217.html

猜你在找的React相关文章