1、安装 npminstall react-native-tab-navigator –save
2、导入 import TabNavigator from ‘react-native-tab-navigator’
3、例子
}
renderSelectedIcon={() =>
}
badgeText="1"
onPress={() => this.setState({ selectedTab: 'home' })}>
{homeView}
}
renderSelectedIcon={() =>
}
renderBadge={() =>
}
onPress={() => this.setState({ selectedTab: 'profile' })}>
{profileView}
4、github地址:
https://github.com/happypancake/react-native-tab-navigator