From 8b408576b716e36c75ce72afaf96d3650f23c82f Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Thu, 13 Apr 2017 14:53:45 -0700 Subject: [PATCH] Fixed bad ReactPropTypes reference in ViewPagerAndroid Reviewed By: spicyj Differential Revision: D4885894 fbshipit-source-id: 2e225354b76bf21dca84c2e723d9b7e27882648d --- .../ViewPager/ViewPagerAndroid.android.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js index cf0192c2b..5d15a25db 100644 --- a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js +++ b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js @@ -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() {