Skip to content

Commit

Permalink
Update remaining PropTypes references
Browse files Browse the repository at this point in the history
Reviewed By: bvaughn

Differential Revision: D5231309

fbshipit-source-id: d54ee4f73dae63124f4462c138383447829a2551
  • Loading branch information
andrewimm authored and hramos committed Jul 12, 2017
1 parent d06a338 commit 952fffe
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 19 deletions.
3 changes: 2 additions & 1 deletion Libraries/CameraRoll/CameraRoll.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
*/
'use strict';

const {PropTypes, checkPropTypes} = require('React');
const PropTypes = require('prop-types');
const {checkPropTypes} = PropTypes;
const RCTCameraRollManager = require('NativeModules').CameraRollManager;

const createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/AppleTV/TVViewPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @flow
*/
'use strict';
var PropTypes = require('React').PropTypes;
var PropTypes = require('prop-types');

/**
* Additional View properties for Apple TV
Expand Down
3 changes: 1 addition & 2 deletions Libraries/Components/Picker/PickerAndroid.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

var ColorPropType = require('ColorPropType');
var React = require('React');
var ReactPropTypes = require('prop-types');
var StyleSheet = require('StyleSheet');
var StyleSheetPropType = require('StyleSheetPropType');
const ViewPropTypes = require('ViewPropTypes');
Expand All @@ -22,8 +23,6 @@ var ViewStylePropTypes = require('ViewStylePropTypes');
var processColor = require('processColor');
var requireNativeComponent = require('requireNativeComponent');

var ReactPropTypes = React.PropTypes;

var REF_PICKER = 'picker';
var MODE_DROPDOWN = 'dropdown';

Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/View/ViewPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

const EdgeInsetsPropType = require('EdgeInsetsPropType');
const Platform = require('Platform');
const PropTypes = require('prop-types');
const StyleSheetPropType = require('StyleSheetPropType');
const ViewStylePropTypes = require('ViewStylePropTypes');

const { PropTypes } = require('React');
const {
AccessibilityComponentTypes,
AccessibilityTraits,
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Components/View/ViewStylePropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/
'use strict';

var LayoutPropTypes = require('LayoutPropTypes');
var ReactPropTypes = require('React').PropTypes;
var ColorPropType = require('ColorPropType');
var LayoutPropTypes = require('LayoutPropTypes');
var ReactPropTypes = require('prop-types');
var ShadowPropTypesIOS = require('ShadowPropTypesIOS');
var TransformPropTypes = require('TransformPropTypes');

Expand Down
3 changes: 1 addition & 2 deletions Libraries/Experimental/SwipeableRow/SwipeableListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
'use strict';

const ListView = require('ListView');
const PropTypes = require('prop-types');
const React = require('React');
const SwipeableListViewDataSource = require('SwipeableListViewDataSource');
const SwipeableRow = require('SwipeableRow');

const {PropTypes} = React;

type DefaultProps = {
bounceFirstRowOnMount: boolean,
renderQuickActions: Function,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Image/ImageSourcePropType.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
'use strict';

const {PropTypes} = require('React');
const PropTypes = require('prop-types');

const ImageURISourcePropType = PropTypes.shape({
/**
Expand Down
5 changes: 2 additions & 3 deletions Libraries/Image/ImageStylePropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
*/
'use strict';

var ColorPropType = require('ColorPropType');
var ImageResizeMode = require('ImageResizeMode');
var LayoutPropTypes = require('LayoutPropTypes');
var ColorPropType = require('ColorPropType');
var ReactPropTypes = require('prop-types');
var ShadowPropTypesIOS = require('ShadowPropTypesIOS');
var TransformPropTypes = require('TransformPropTypes');

var ReactPropTypes = require('React').PropTypes;

var ImageStylePropTypes = {
...LayoutPropTypes,
...ShadowPropTypesIOS,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/StyleSheet/EdgeInsetsPropType.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
'use strict';

var {PropTypes} = require('React');
var PropTypes = require('prop-types');

var createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');

Expand Down
2 changes: 1 addition & 1 deletion Libraries/StyleSheet/LayoutPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
'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
Expand Down
2 changes: 1 addition & 1 deletion Libraries/StyleSheet/PointPropType.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
'use strict';

var PropTypes = require('React').PropTypes;
var PropTypes = require('prop-types');

var createStrictShapeTypeChecker = require('createStrictShapeTypeChecker');

Expand Down
4 changes: 2 additions & 2 deletions Libraries/StyleSheet/TransformPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/
'use strict';

var deprecatedPropType = require('deprecatedPropType');
var ReactPropTypes = require('prop-types');

var ReactPropTypes = require('React').PropTypes;
var deprecatedPropType = require('deprecatedPropType');

var TransformMatrixPropType = function(
props : Object,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Text/TextStylePropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*/
'use strict';

const ReactPropTypes = require('React').PropTypes;
const ColorPropType = require('ColorPropType');
const ReactPropTypes = require('prop-types');
const ViewStylePropTypes = require('ViewStylePropTypes');

const TextStylePropTypes = {
Expand Down

0 comments on commit 952fffe

Please sign in to comment.