diff --git a/Libraries/StyleSheet/StyleSheetPropType.js b/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js similarity index 90% rename from Libraries/StyleSheet/StyleSheetPropType.js rename to Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js index 877f42f2b2ed..42464b196ed8 100644 --- a/Libraries/StyleSheet/StyleSheetPropType.js +++ b/Libraries/DeprecatedPropTypes/DeprecatedStyleSheetPropType.js @@ -13,7 +13,7 @@ const createStrictShapeTypeChecker = require('createStrictShapeTypeChecker'); const flattenStyle = require('flattenStyle'); -function StyleSheetPropType(shape: { +function DeprecatedStyleSheetPropType(shape: { [key: string]: ReactPropsCheckType, }): ReactPropsCheckType { const shapePropType = createStrictShapeTypeChecker(shape); @@ -28,4 +28,4 @@ function StyleSheetPropType(shape: { }; } -module.exports = StyleSheetPropType; +module.exports = DeprecatedStyleSheetPropType; diff --git a/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js b/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js index 99c51ff5dedb..9bbb30c3ffdb 100644 --- a/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js +++ b/Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js @@ -13,7 +13,7 @@ const DeprecatedEdgeInsetsPropType = require('DeprecatedEdgeInsetsPropType'); const PlatformViewPropTypes = require('PlatformViewPropTypes'); const PropTypes = require('prop-types'); -const StyleSheetPropType = require('StyleSheetPropType'); +const DeprecatedStyleSheetPropType = require('DeprecatedStyleSheetPropType'); const ViewStylePropTypes = require('ViewStylePropTypes'); const { @@ -23,7 +23,7 @@ const { AccessibilityStates, } = require('ViewAccessibility'); -const stylePropType = StyleSheetPropType(ViewStylePropTypes); +const stylePropType = DeprecatedStyleSheetPropType(ViewStylePropTypes); module.exports = { /** diff --git a/Libraries/Image/Image.android.js b/Libraries/Image/Image.android.js index 9533501c3517..e81db678bdaf 100644 --- a/Libraries/Image/Image.android.js +++ b/Libraries/Image/Image.android.js @@ -17,7 +17,7 @@ const PropTypes = require('prop-types'); const React = require('React'); const ReactNative = require('ReactNative'); const StyleSheet = require('StyleSheet'); -const StyleSheetPropType = require('StyleSheetPropType'); +const DeprecatedStyleSheetPropType = require('DeprecatedStyleSheetPropType'); const ImageViewNativeComponent = require('ImageViewNativeComponent'); const TextAncestor = require('TextAncestor'); @@ -38,7 +38,7 @@ function generateRequestId() { const ImageProps = { ...DeprecatedViewPropTypes, - style: StyleSheetPropType(ImageStylePropTypes), + style: DeprecatedStyleSheetPropType(ImageStylePropTypes), /** * See https://facebook.github.io/react-native/docs/image.html#source */ diff --git a/Libraries/Image/ImageProps.js b/Libraries/Image/ImageProps.js index b0b96423629b..71396abd43c5 100644 --- a/Libraries/Image/ImageProps.js +++ b/Libraries/Image/ImageProps.js @@ -14,7 +14,7 @@ const DeprecatedEdgeInsetsPropType = require('DeprecatedEdgeInsetsPropType'); const ImageSourcePropType = require('ImageSourcePropType'); const ImageStylePropTypes = require('ImageStylePropTypes'); const PropTypes = require('prop-types'); -const StyleSheetPropType = require('StyleSheetPropType'); +const DeprecatedStyleSheetPropType = require('DeprecatedStyleSheetPropType'); import type {DimensionValue} from 'StyleSheetTypes'; import type {ViewProps} from 'ViewPropTypes'; @@ -78,7 +78,7 @@ module.exports = { /** * See https://facebook.github.io/react-native/docs/image.html#style */ - style: StyleSheetPropType(ImageStylePropTypes), + style: DeprecatedStyleSheetPropType(ImageStylePropTypes), /** * The image source (either a remote URL or a local file resource). * diff --git a/Libraries/Text/TextPropTypes.js b/Libraries/Text/TextPropTypes.js index 9b7ef8b9fddf..dddb43ea0072 100644 --- a/Libraries/Text/TextPropTypes.js +++ b/Libraries/Text/TextPropTypes.js @@ -13,10 +13,10 @@ const DeprecatedColorPropType = require('DeprecatedColorPropType'); const DeprecatedEdgeInsetsPropType = require('DeprecatedEdgeInsetsPropType'); const PropTypes = require('prop-types'); -const StyleSheetPropType = require('StyleSheetPropType'); +const DeprecatedStyleSheetPropType = require('DeprecatedStyleSheetPropType'); const TextStylePropTypes = require('TextStylePropTypes'); -const stylePropType = StyleSheetPropType(TextStylePropTypes); +const stylePropType = DeprecatedStyleSheetPropType(TextStylePropTypes); module.exports = { /**