Skip to content

Commit

Permalink
Update FlatList doc
Browse files Browse the repository at this point in the history
Summary:
1. Mention scrollToIndex support.
2. Fix a format error.
3. Use relative links like https://github.com/facebook/react-native/blob/59257d6976656f4eeaf389ae5527dfaff08e7354/Libraries/Components/Navigation/NavigatorIOS.ios.js#L136 for links in "next version" to work properly.

~~4. BREAKING: `columnWrapperStyle` should be `rowWrapperStyle`?~~
Closes facebook#12714

Differential Revision: D4730476

Pulled By: sahrens

fbshipit-source-id: 643aab659064e6f5275ec89fd7f967dd9de866c4
  • Loading branch information
sunnylqm authored and facebook-github-bot committed Mar 22, 2017
1 parent 93c438d commit f39ef36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Libraries/CustomComponents/Lists/FlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ type DefaultProps = typeof defaultProps;
* - Separator support.
* - Pull to Refresh.
* - Scroll loading.
* - ScrollToIndex support.
*
* If you need section support, use [`<SectionList>`](/react-native/docs/sectionlist.html).
* If you need section support, use [`<SectionList>`](docs/sectionlist.html).
*
* Minimal Example:
*
Expand All @@ -168,7 +169,7 @@ type DefaultProps = typeof defaultProps;
* renderItem={({item}) => <Text>{item.key}</Text>}
* />
*
* This is a convenience wrapper around [`<VirtualizedList>`](/react-native/docs/virtualizedlist.html),
* This is a convenience wrapper around [`<VirtualizedList>`](docs/virtualizedlist.html),
* and thus inherits the following caveats:
*
* - Internal state is not preserved when content scrolls out of the render window. Make sure all
Expand Down

0 comments on commit f39ef36

Please sign in to comment.