Fixed bad ReactPropTypes reference in ViewPagerAndroid
Reviewed By: spicyj Differential Revision: D4885894 fbshipit-source-id: 2e225354b76bf21dca84c2e723d9b7e27882648d
This commit is contained in:
parent
2030c78355
commit
8b408576b7
|
@ -85,7 +85,7 @@ class ViewPagerAndroid extends React.Component {
|
|||
* Index of initial page that should be selected. Use `setPage` method to
|
||||
* update the page, and `onPageSelected` to monitor page changes
|
||||
*/
|
||||
initialPage: ReactPropTypes.number,
|
||||
initialPage: PropTypes.number,
|
||||
|
||||
/**
|
||||
* Executed when transitioning between pages (ether because of animation for
|
||||
|
@ -96,7 +96,7 @@ class ViewPagerAndroid extends React.Component {
|
|||
* Value x means that (1 - x) fraction of the page at "position" index is
|
||||
* visible, and x fraction of the next page is visible.
|
||||
*/
|
||||
onPageScroll: ReactPropTypes.func,
|
||||
onPageScroll: PropTypes.func,
|
||||
|
||||
/**
|
||||
* Function called when the page scrolling state has changed.
|
||||
|
@ -106,7 +106,7 @@ class ViewPagerAndroid extends React.Component {
|
|||
* - settling, meaning that there was an interaction with the page scroller, and the
|
||||
* page scroller is now finishing it's closing or opening animation
|
||||
*/
|
||||
onPageScrollStateChanged: ReactPropTypes.func,
|
||||
onPageScrollStateChanged: PropTypes.func,
|
||||
|
||||
/**
|
||||
* This callback will be called once ViewPager finish navigating to selected page
|
||||
|
@ -114,20 +114,20 @@ class ViewPagerAndroid extends React.Component {
|
|||
* callback will have following fields:
|
||||
* - position - index of page that has been selected
|
||||
*/
|
||||
onPageSelected: ReactPropTypes.func,
|
||||
onPageSelected: PropTypes.func,
|
||||
|
||||
/**
|
||||
* Blank space to show between pages. This is only visible while scrolling, pages are still
|
||||
* edge-to-edge.
|
||||
*/
|
||||
pageMargin: ReactPropTypes.number,
|
||||
pageMargin: PropTypes.number,
|
||||
|
||||
/**
|
||||
* Determines whether the keyboard gets dismissed in response to a drag.
|
||||
* - 'none' (the default), drags do not dismiss the keyboard.
|
||||
* - 'on-drag', the keyboard is dismissed when a drag begins.
|
||||
*/
|
||||
keyboardDismissMode: ReactPropTypes.oneOf([
|
||||
keyboardDismissMode: PropTypes.oneOf([
|
||||
'none', // default
|
||||
'on-drag',
|
||||
]),
|
||||
|
@ -136,7 +136,7 @@ class ViewPagerAndroid extends React.Component {
|
|||
* When false, the content does not scroll.
|
||||
* The default value is true.
|
||||
*/
|
||||
scrollEnabled: ReactPropTypes.bool,
|
||||
scrollEnabled: PropTypes.bool,
|
||||
};
|
||||
|
||||
componentDidMount() {
|
||||
|
|
Loading…
Reference in New Issue