Skip to content

Commit 165b4da

Browse files
committed
update FlatListExample
1 parent 595d200 commit 165b4da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Example/FlatListExample.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default class FlatListExample extends Component {
1919
return (
2020
<View style={{flex: 1}}>
2121
<FlatList
22+
keyExtractor={(item)=>item}
2223
data={this.state.data}
2324
renderItem={({item,index}) => <Text key={index} onPress={()=>alert(111)} style={{height:100}}>{item}</Text>}
2425
renderScrollComponent={props=><ScrollView

0 commit comments

Comments
 (0)