ListItem JSX tag is not closed when used in SectionList

Summary:
Thanks for submitting a PR! Please read these instructions carefully:

- [ ] Explain the **motivation** for making this change.
- [ ] Provide a **test plan** demonstrating that the code is solid.
- [ ] Match the **code formatting** of the rest of the codebase.
- [ ] Target the `master` branch, NOT a "stable" branch.

When copy pasting the SectionList, got an error with a non closing JSX tag
What existing problem does the pull request solve?
Closing the JSX tag in 2 files
no test required
A good test plan has the exact commands you ran and their output, provides screenshots or videos if the pull request changes UI or updates the website. See [What is a Test Plan?][1] to learn more.

If you have added code that should be tested, add tests.

Sign the [CLA][2], if you haven't already.

Small pull requests are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.
Closes https://github.com/facebook/react-native/pull/13525

Differential Revision: D4908495

Pulled By: javache

fbshipit-source-id: f2dc49c9238d1da8906f7daf144429a57ad725a3
This commit is contained in:
Van der Auwermeulen Grégoire 2017-04-18 16:40:11 -07:00 committed by Facebook Github Bot
parent be5a4609e6
commit 23e8fcc68c
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ type DefaultProps = typeof defaultProps;
* Simple Examples: * Simple Examples:
* *
* <SectionList * <SectionList
* renderItem={({item}) => <ListItem title={item.title}} * renderItem={({item}) => <ListItem title={item.title} />}
* renderSectionHeader={({section}) => <H1 title={section.key} />} * renderSectionHeader={({section}) => <H1 title={section.key} />}
* sections={[ // homogenous rendering between sections * sections={[ // homogenous rendering between sections
* {data: [...], key: ...}, * {data: [...], key: ...},

View File

@ -27,7 +27,7 @@ If you want to render a set of data broken into logical sections, maybe with sec
``` ```
<SectionList <SectionList
renderItem={({item}) => <ListItem title={item.title}} renderItem={({item}) => <ListItem title={item.title} />}
renderSectionHeader={({section}) => <H1 title={section.key} />} renderSectionHeader={({section}) => <H1 title={section.key} />}
sections={[ // homogenous rendering between sections sections={[ // homogenous rendering between sections
{data: [...], key: ...}, {data: [...], key: ...},