Browse files

FlatList doesn't specify that it accepts ScrollView Props

ListView does specify this:

The link in ListView is generated by the documentation generator, but because the format of FlatList's props is different, it fails to catch it. Consider finding a way to specify this explicitly to the documentation generator (although this would be a bigger change).

Thank you for sending the PR!

If you changed any code, please provide us with clear instructions on how you verified your changes work. In other words, a test plan is *required*. Bonus points for screenshots and videos!

Please read the Contribution Guidelines at to learn more about contributing to React Native.

Happy contributing!
Closes #14891

Differential Revision: D5386036

Pulled By: sahrens

fbshipit-source-id: 0b8a685411507cc4d0b781fd39b792d59614ce52
  • Loading branch information...
tomasreimers authored and facebook-github-bot committed Jul 18, 2017
1 parent 56d4595 commit c694212be3b3b976496fbc9a99216ad43e117eac
Showing with 1 addition and 0 deletions.
  1. +1 −0 Libraries/Lists/FlatList.js
@@ -303,6 +303,7 @@ type DefaultProps = typeof defaultProps;
* - By default, the list looks for a `key` prop on each item and uses that for the React key.
* Alternatively, you can provide a custom `keyExtractor` prop.
* Also inherets [ScrollView Props](docs/scrollview.html#props), unless it is nested in another FlatList of same orientation.
class FlatList<ItemT> extends React.PureComponent<

0 comments on commit c694212

Please sign in to comment.