Permalink
Browse files

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
  • Loading branch information...
gabrielweyer authored and facebook-github-bot committed Oct 7, 2017
1 parent f66c8f2 commit c12681c214d6cd5e7eda59d6b0dfe9d6430bcf9c
Showing with 1 addition and 0 deletions.
  1. +1 −0 docs/UsingAListView.md
View
@@ -75,6 +75,7 @@ export default class SectionListBasics extends Component {
]}
renderItem={({item}) => <Text style={styles.item}>{item}</Text>}
renderSectionHeader={({section}) => <Text style={styles.sectionHeader}>{section.title}</Text>}
keyExtractor={(item, index) => index}
/>
</View>
);

0 comments on commit c12681c

Please sign in to comment.