Update FlatList.js

Summary:
Only a small amendment, but took me a little bit to figure out why this wasn't working.
Closes https://github.com/facebook/react-native/pull/12706

Differential Revision: D4656700

fbshipit-source-id: d6038581aa70e96a2be775a7a9786e8c7e64f762
This commit is contained in:
Mike Adams 2017-03-15 16:53:17 -07:00 committed by Facebook Github Bot
parent 6336e4d41e
commit 7f4054df76
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ type RequiredProps<ItemT> = {
* _renderItem = ({item}) => (
* <TouchableOpacity onPress={() => this._onPress(item)}>
* <Text>{item.title}}</Text>
* <TouchableOpacity/>
* </TouchableOpacity>
* );
* ...
* <FlatList data={[{title: 'Title Text', key: 'item1'}]} renderItem={this._renderItem} />