#### 使用FlatList组件 ~~~ <FlatList data={[{key: 'a'}, {key: 'b'}]} renderItem={({item}) => <Text>{item.key}</Text>} /> ~~~ #### 完整代码 ~~~ import React from 'react'; import { FlatList, StyleSheet,View, Text,Button } from 'react-native'; import { StackNavigator } from 'react-navigation'; import { TabNavigator } from 'react-navigation'; const HomeScreen = () => ( <View style={styles.container}> <Text style={styles.news}>新闻列表</Text> <FlatList data={[ {key: 'Devin'}, {key: 'Jackson'}, {key: 'James'}, {key: 'Joel'}, {key: 'John'}, {key: 'Jillian'}, {key: 'Jimmy'}, {key: 'Julie'}, ]} renderItem={({item}) => <Text style={styles.item}>{item.key}</Text>} /> </View> ); const ProfileScreen = () => ( <View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}> <Text>Profile Screen</Text> </View> ); const RootTabs = TabNavigator({ Home: { screen: HomeScreen, }, Profile: { screen: ProfileScreen, }, },{ tabBarPosition: 'bottom', animationEnabled: true, tabBarOptions: { activeTintColor: '#ffffff', } }); const styles = StyleSheet.create({ container: { flex: 1 }, item: { padding: 10, fontSize: 18, height: 44, color:'#232323', }, news:{ fontSize:20, paddingLeft:10, borderBottomColor:'#dadada', borderBottomWidth:1, justifyContent:'center', } }); export default RootTabs; ~~~ ![](https://box.kancloud.cn/40f443edb27441940c4eac373a967c80_541x947.png)