Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move and rename StyleSheetPropType to DeprecatedStyleSheetPropType #21380

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -28,4 +28,4 @@ function StyleSheetPropType(shape: {
};
}

module.exports = StyleSheetPropType;
module.exports = DeprecatedStyleSheetPropType;
4 changes: 2 additions & 2 deletions Libraries/DeprecatedPropTypes/DeprecatedViewPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -23,7 +23,7 @@ const {
AccessibilityStates,
} = require('ViewAccessibility');

const stylePropType = StyleSheetPropType(ViewStylePropTypes);
const stylePropType = DeprecatedStyleSheetPropType(ViewStylePropTypes);

module.exports = {
/**
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Image/Image.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Image/ImageProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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).
*
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Text/TextPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
/**
Expand Down