From f39ef3619073aae83d5b71a2b17798e5d19c9324 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Tue, 21 Mar 2017 23:55:50 -0700 Subject: [PATCH] Update FlatList doc 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 https://github.com/facebook/react-native/pull/12714 Differential Revision: D4730476 Pulled By: sahrens fbshipit-source-id: 643aab659064e6f5275ec89fd7f967dd9de866c4 --- Libraries/CustomComponents/Lists/FlatList.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/CustomComponents/Lists/FlatList.js b/Libraries/CustomComponents/Lists/FlatList.js index 77ca17084..9c90549ca 100644 --- a/Libraries/CustomComponents/Lists/FlatList.js +++ b/Libraries/CustomComponents/Lists/FlatList.js @@ -158,8 +158,9 @@ type DefaultProps = typeof defaultProps; * - Separator support. * - Pull to Refresh. * - Scroll loading. + * - ScrollToIndex support. * - * If you need section support, use [``](/react-native/docs/sectionlist.html). + * If you need section support, use [``](docs/sectionlist.html). * * Minimal Example: * @@ -168,7 +169,7 @@ type DefaultProps = typeof defaultProps; * renderItem={({item}) => {item.key}} * /> * - * This is a convenience wrapper around [``](/react-native/docs/virtualizedlist.html), + * This is a convenience wrapper around [``](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