FlatList doesn't specify that it accepts ScrollView Props
Summary: ListView does specify this: https://facebook.github.io/react-native/docs/listview.html#props 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 https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md to learn more about contributing to React Native. Happy contributing! --> Closes https://github.com/facebook/react-native/pull/14891 Differential Revision: D5386036 Pulled By: sahrens fbshipit-source-id: 0b8a685411507cc4d0b781fd39b792d59614ce52
This commit is contained in:
parent
56d4595422
commit
c694212be3
|
@ -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<
|
||||
DefaultProps,
|
||||
|
|
Loading…
Reference in New Issue