Created
January 4, 2019 02:43
-
-
Save CodingItWrong/7556900663e982121edd86695a1540af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { | |
| FlatList, | |
| Text, | |
| } from 'react-native'; | |
| const MessageList = ({ data }) => ( | |
| <FlatList | |
| data={data} | |
| keyExtractor={item => item} | |
| renderItem={({ item }) => <Text>{item}</Text>} | |
| /> | |
| ); | |
| export default MessageList; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment