diff --git a/docs/flatlist.html b/docs/flatlist.html index cb4a8566205..829f03cb0d3 100644 --- a/docs/flatlist.html +++ b/docs/flatlist.html @@ -84,73 +84,182 @@
  • Multiple column support.
  • If you need section support, use <SectionList>.

    -

    Minimal Example:

    -
    <FlatList
    -  data={[{key: 'a'}, {key: 'b'}]}
    -  renderItem={({item}) => <Text>{item.key}</Text>}
    -/>
    -
    -

    To render multiple columns, use the numColumns prop. Using this approach instead of a flexWrap layout can prevent conflicts with the item height logic.

    -

    More complex, multi-select example demonstrating PureComponent usage for perf optimization and avoiding bugs.

    +

    Basic Example:

    +

    To render multiple columns, use the numColumns prop. Using this approach instead of a flexWrap layout can prevent conflicts with the item height logic.

    +

    More complex, multi-select example demonstrating `` usage for perf optimization and avoiding bugs.

    -
    class MyListItem extends React.PureComponent {
    -  _onPress = () => {
    -    this.props.onPressItem(this.props.id);
    -  };
    +

    This is a convenience wrapper around <VirtualizedList>, and thus inherits its props (as well as those of <ScrollView>) that aren't explicitly listed here, along with the following caveats:

    If you need section support, use <SectionList>.

    -

    Minimal Example:

    -
    <FlatList
    -  data={[{key: 'a'}, {key: 'b'}]}
    -  renderItem={({item}) => <Text>{item.key}</Text>}
    -/>
    -
    -

    To render multiple columns, use the numColumns prop. Using this approach instead of a flexWrap layout can prevent conflicts with the item height logic.

    -

    More complex, multi-select example demonstrating PureComponent usage for perf optimization and avoiding bugs.

    +

    Basic Example:

    +

    To render multiple columns, use the numColumns prop. Using this approach instead of a flexWrap layout can prevent conflicts with the item height logic.

    +

    More complex, multi-select example demonstrating `` usage for perf optimization and avoiding bugs.

    -
    class MyListItem extends React.PureComponent {
    -  _onPress = () => {
    -    this.props.onPressItem(this.props.id);
    -  };
    +

    This is a convenience wrapper around <VirtualizedList>, and thus inherits its props (as well as those of <ScrollView>) that aren't explicitly listed here, along with the following caveats:

    If you need section support, use <SectionList>.

    -

    Minimal Example:

    -
    <FlatList
    -  data={[{key: 'a'}, {key: 'b'}]}
    -  renderItem={({item}) => <Text>{item.key}</Text>}
    -/>
    -
    -

    To render multiple columns, use the numColumns prop. Using this approach instead of a flexWrap layout can prevent conflicts with the item height logic.

    -

    More complex, multi-select example demonstrating PureComponent usage for perf optimization and avoiding bugs.

    +

    Basic Example:

    +

    To render multiple columns, use the numColumns prop. Using this approach instead of a flexWrap layout can prevent conflicts with the item height logic.

    +

    More complex, multi-select example demonstrating `` usage for perf optimization and avoiding bugs.

    -
    class MyListItem extends React.PureComponent {
    -  _onPress = () => {
    -    this.props.onPressItem(this.props.id);
    -  };
    +

    This is a convenience wrapper around <VirtualizedList>, and thus inherits its props (as well as those of <ScrollView>) that aren't explicitly listed here, along with the following caveats:

    If you need section support, use <SectionList>.

    -

    Minimal Example:

    -
    <FlatList
    -  data={[{key: 'a'}, {key: 'b'}]}
    -  renderItem={({item}) => <Text>{item.key}</Text>}
    -/>
    -
    -

    To render multiple columns, use the numColumns prop. Using this approach instead of a flexWrap layout can prevent conflicts with the item height logic.

    -

    More complex, multi-select example demonstrating PureComponent usage for perf optimization and avoiding bugs.

    +

    Basic Example:

    +

    To render multiple columns, use the numColumns prop. Using this approach instead of a flexWrap layout can prevent conflicts with the item height logic.

    +

    More complex, multi-select example demonstrating `` usage for perf optimization and avoiding bugs.

    -
    class MyListItem extends React.PureComponent {
    -  _onPress = () => {
    -    this.props.onPressItem(this.props.id);
    -  };
    +

    This is a convenience wrapper around <VirtualizedList>, and thus inherits its props (as well as those of <ScrollView>) that aren't explicitly listed here, along with the following caveats: