Skip to content

Commit c12681c

Browse files
gabrielweyerfacebook-github-bot
authored andcommitted
Fix warning on SectionList's tutorial
Summary: <!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes. Help us understand your motivation by explaining why you decided to make this change. You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html Happy contributing! --> I wanted to fix issue #16231 - the warning is not displayed anymore: ![image](https://user-images.githubusercontent.com/2101647/31268083-7e2e0ddc-aac6-11e7-966b-b1e9ffa6cfa8.png) Closes #16232 Differential Revision: D6005386 Pulled By: hramos fbshipit-source-id: 33961ee7cd708c424c2665a38dc5e733f1ea2204
1 parent f66c8f2 commit c12681c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/UsingAListView.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export default class SectionListBasics extends Component {
7575
]}
7676
renderItem={({item}) => <Text style={styles.item}>{item}</Text>}
7777
renderSectionHeader={({section}) => <Text style={styles.sectionHeader}>{section.title}</Text>}
78+
keyExtractor={(item, index) => index}
7879
/>
7980
</View>
8081
);

0 commit comments

Comments
 (0)