Update remaining PropTypes references

Reviewed By: bvaughn

Differential Revision: D5231309

fbshipit-source-id: d54ee4f73dae63124f4462c138383447829a2551
This commit is contained in:
Andrew Imm 2017-06-12 15:59:06 -07:00 committed by Facebook Github Bot
parent 40b5486eea
commit 50b11aa09b
13 changed files with 18 additions and 20 deletions

View File

@ -12,7 +12,8 @@
*/ */
'use strict'; 'use strict';
const {PropTypes, checkPropTypes} = require('React'); const PropTypes = require('prop-types');
const {checkPropTypes} = PropTypes;
const RCTCameraRollManager = require('NativeModules').CameraRollManager; const RCTCameraRollManager = require('NativeModules').CameraRollManager;
const createStrictShapeTypeChecker = require('createStrictShapeTypeChecker'); const createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');

View File

@ -10,7 +10,7 @@
* @flow * @flow
*/ */
'use strict'; 'use strict';
var PropTypes = require('React').PropTypes; var PropTypes = require('prop-types');
/** /**
* Additional View properties for Apple TV * Additional View properties for Apple TV

View File

@ -14,6 +14,7 @@
var ColorPropType = require('ColorPropType'); var ColorPropType = require('ColorPropType');
var React = require('React'); var React = require('React');
var ReactPropTypes = require('prop-types');
var StyleSheet = require('StyleSheet'); var StyleSheet = require('StyleSheet');
var StyleSheetPropType = require('StyleSheetPropType'); var StyleSheetPropType = require('StyleSheetPropType');
const ViewPropTypes = require('ViewPropTypes'); const ViewPropTypes = require('ViewPropTypes');
@ -22,8 +23,6 @@ var ViewStylePropTypes = require('ViewStylePropTypes');
var processColor = require('processColor'); var processColor = require('processColor');
var requireNativeComponent = require('requireNativeComponent'); var requireNativeComponent = require('requireNativeComponent');
var ReactPropTypes = React.PropTypes;
var REF_PICKER = 'picker'; var REF_PICKER = 'picker';
var MODE_DROPDOWN = 'dropdown'; var MODE_DROPDOWN = 'dropdown';

View File

@ -13,10 +13,10 @@
const EdgeInsetsPropType = require('EdgeInsetsPropType'); const EdgeInsetsPropType = require('EdgeInsetsPropType');
const Platform = require('Platform'); const Platform = require('Platform');
const PropTypes = require('prop-types');
const StyleSheetPropType = require('StyleSheetPropType'); const StyleSheetPropType = require('StyleSheetPropType');
const ViewStylePropTypes = require('ViewStylePropTypes'); const ViewStylePropTypes = require('ViewStylePropTypes');
const { PropTypes } = require('React');
const { const {
AccessibilityComponentTypes, AccessibilityComponentTypes,
AccessibilityTraits, AccessibilityTraits,

View File

@ -11,9 +11,9 @@
*/ */
'use strict'; 'use strict';
var LayoutPropTypes = require('LayoutPropTypes');
var ReactPropTypes = require('React').PropTypes;
var ColorPropType = require('ColorPropType'); var ColorPropType = require('ColorPropType');
var LayoutPropTypes = require('LayoutPropTypes');
var ReactPropTypes = require('prop-types');
var ShadowPropTypesIOS = require('ShadowPropTypesIOS'); var ShadowPropTypesIOS = require('ShadowPropTypesIOS');
var TransformPropTypes = require('TransformPropTypes'); var TransformPropTypes = require('TransformPropTypes');

View File

@ -12,12 +12,11 @@
'use strict'; 'use strict';
const ListView = require('ListView'); const ListView = require('ListView');
const PropTypes = require('prop-types');
const React = require('React'); const React = require('React');
const SwipeableListViewDataSource = require('SwipeableListViewDataSource'); const SwipeableListViewDataSource = require('SwipeableListViewDataSource');
const SwipeableRow = require('SwipeableRow'); const SwipeableRow = require('SwipeableRow');
const {PropTypes} = React;
type DefaultProps = { type DefaultProps = {
bounceFirstRowOnMount: boolean, bounceFirstRowOnMount: boolean,
renderQuickActions: Function, renderQuickActions: Function,

View File

@ -11,7 +11,7 @@
*/ */
'use strict'; 'use strict';
const {PropTypes} = require('React'); const PropTypes = require('prop-types');
const ImageURISourcePropType = PropTypes.shape({ const ImageURISourcePropType = PropTypes.shape({
/** /**

View File

@ -11,14 +11,13 @@
*/ */
'use strict'; 'use strict';
var ColorPropType = require('ColorPropType');
var ImageResizeMode = require('ImageResizeMode'); var ImageResizeMode = require('ImageResizeMode');
var LayoutPropTypes = require('LayoutPropTypes'); var LayoutPropTypes = require('LayoutPropTypes');
var ColorPropType = require('ColorPropType'); var ReactPropTypes = require('prop-types');
var ShadowPropTypesIOS = require('ShadowPropTypesIOS'); var ShadowPropTypesIOS = require('ShadowPropTypesIOS');
var TransformPropTypes = require('TransformPropTypes'); var TransformPropTypes = require('TransformPropTypes');
var ReactPropTypes = require('React').PropTypes;
var ImageStylePropTypes = { var ImageStylePropTypes = {
...LayoutPropTypes, ...LayoutPropTypes,
...ShadowPropTypesIOS, ...ShadowPropTypesIOS,

View File

@ -11,9 +11,9 @@
*/ */
'use strict'; 'use strict';
var createStrictShapeTypeChecker = require('createStrictShapeTypeChecker'); var PropTypes = require('prop-types');
var {PropTypes} = require('React'); var createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');
var EdgeInsetsPropType = createStrictShapeTypeChecker({ var EdgeInsetsPropType = createStrictShapeTypeChecker({
top: PropTypes.number, top: PropTypes.number,

View File

@ -11,7 +11,7 @@
*/ */
'use strict'; 'use strict';
var ReactPropTypes = require('React').PropTypes; var ReactPropTypes = require('prop-types');
/** /**
* React Native's layout system is based on Flexbox and is powered both * React Native's layout system is based on Flexbox and is powered both

View File

@ -11,7 +11,7 @@
*/ */
'use strict'; 'use strict';
var PropTypes = require('React').PropTypes; var PropTypes = require('prop-types');
var createStrictShapeTypeChecker = require('createStrictShapeTypeChecker'); var createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');

View File

@ -11,9 +11,9 @@
*/ */
'use strict'; 'use strict';
var deprecatedPropType = require('deprecatedPropType'); var ReactPropTypes = require('prop-types');
var ReactPropTypes = require('React').PropTypes; var deprecatedPropType = require('deprecatedPropType');
var TransformMatrixPropType = function( var TransformMatrixPropType = function(
props : Object, props : Object,

View File

@ -11,8 +11,8 @@
*/ */
'use strict'; 'use strict';
const ReactPropTypes = require('React').PropTypes;
const ColorPropType = require('ColorPropType'); const ColorPropType = require('ColorPropType');
const ReactPropTypes = require('prop-types');
const ViewStylePropTypes = require('ViewStylePropTypes'); const ViewStylePropTypes = require('ViewStylePropTypes');
const TextStylePropTypes = { const TextStylePropTypes = {