File tree Expand file tree Collapse file tree 7 files changed +15
-13
lines changed Expand file tree Collapse file tree 7 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1212const { AnimatedEvent} = require ( './AnimatedEvent' ) ;
1313const AnimatedProps = require ( './nodes/AnimatedProps' ) ;
1414const React = require ( 'React' ) ;
15- const ViewStylePropTypes = require ( 'ViewStylePropTypes ' ) ;
15+ const DeprecatedViewStylePropTypes = require ( 'DeprecatedViewStylePropTypes ' ) ;
1616
1717const invariant = require ( 'fbjs/lib/invariant' ) ;
1818
@@ -184,7 +184,7 @@ function createAnimatedComponent(Component: any): any {
184184 return ;
185185 }
186186
187- for ( const key in ViewStylePropTypes ) {
187+ for ( const key in DeprecatedViewStylePropTypes ) {
188188 if ( ! propTypes [ key ] && props [ key ] !== undefined ) {
189189 console . warn (
190190 'You are setting the style `{ ' +
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ type Props = $ReadOnly<{|
6666
6767 /**
6868 * Used to style and layout the `Slider`. See `StyleSheet.js` and
69- * `ViewStylePropTypes .js` for more info.
69+ * `DeprecatedViewStylePropTypes .js` for more info.
7070 */
7171 style ?: ?ViewStyleProp ,
7272
Original file line number Diff line number Diff line change 1212
1313const DeprecatedImageStylePropTypes = require ( 'DeprecatedImageStylePropTypes' ) ;
1414const TextStylePropTypes = require ( 'TextStylePropTypes' ) ;
15- const ViewStylePropTypes = require ( 'ViewStylePropTypes ' ) ;
15+ const DeprecatedViewStylePropTypes = require ( 'DeprecatedViewStylePropTypes ' ) ;
1616
1717const processColor = require ( 'processColor' ) ;
1818const processTransform = require ( 'processTransform' ) ;
@@ -21,7 +21,7 @@ const sizesDiffer = require('sizesDiffer');
2121const ReactNativeStyleAttributes = { } ;
2222
2323for ( const attributeName of Object . keys ( {
24- ...ViewStylePropTypes ,
24+ ...DeprecatedViewStylePropTypes ,
2525 ...TextStylePropTypes ,
2626 ...DeprecatedImageStylePropTypes ,
2727} ) ) {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const DeprecatedEdgeInsetsPropType = require('DeprecatedEdgeInsetsPropType');
1414const PlatformViewPropTypes = require ( 'PlatformViewPropTypes' ) ;
1515const PropTypes = require ( 'prop-types' ) ;
1616const DeprecatedStyleSheetPropType = require ( 'DeprecatedStyleSheetPropType' ) ;
17- const ViewStylePropTypes = require ( 'ViewStylePropTypes ' ) ;
17+ const DeprecatedViewStylePropTypes = require ( 'DeprecatedViewStylePropTypes ' ) ;
1818
1919const {
2020 AccessibilityComponentTypes,
@@ -23,7 +23,9 @@ const {
2323 AccessibilityStates,
2424} = require ( 'ViewAccessibility' ) ;
2525
26- const stylePropType = DeprecatedStyleSheetPropType ( ViewStylePropTypes ) ;
26+ const stylePropType = DeprecatedStyleSheetPropType (
27+ DeprecatedViewStylePropTypes ,
28+ ) ;
2729
2830module . exports = {
2931 /**
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const DeprecatedTransformPropTypes = require('DeprecatedTransformPropTypes');
1919/**
2020 * Warning: Some of these properties may not be supported in all releases.
2121 */
22- const ViewStylePropTypes = {
22+ const DeprecatedViewStylePropTypes = {
2323 ...LayoutPropTypes ,
2424 ...DeprecatedShadowPropTypesIOS ,
2525 ...DeprecatedTransformPropTypes ,
@@ -58,4 +58,4 @@ const ViewStylePropTypes = {
5858 elevation : ReactPropTypes . number ,
5959} ;
6060
61- module . exports = ViewStylePropTypes ;
61+ module . exports = DeprecatedViewStylePropTypes ;
Original file line number Diff line number Diff line change 1212
1313const DeprecatedImageStylePropTypes = require ( 'DeprecatedImageStylePropTypes' ) ;
1414const TextStylePropTypes = require ( 'TextStylePropTypes' ) ;
15- const ViewStylePropTypes = require ( 'ViewStylePropTypes ' ) ;
15+ const DeprecatedViewStylePropTypes = require ( 'DeprecatedViewStylePropTypes ' ) ;
1616
1717const invariant = require ( 'fbjs/lib/invariant' ) ;
1818
@@ -87,7 +87,7 @@ const allStylePropTypes = {};
8787if ( __DEV__ && ! global . __RCTProfileIsProfiling ) {
8888 StyleSheetValidation . addValidStylePropTypes ( DeprecatedImageStylePropTypes ) ;
8989 StyleSheetValidation . addValidStylePropTypes ( TextStylePropTypes ) ;
90- StyleSheetValidation . addValidStylePropTypes ( ViewStylePropTypes ) ;
90+ StyleSheetValidation . addValidStylePropTypes ( DeprecatedViewStylePropTypes ) ;
9191}
9292
9393module . exports = StyleSheetValidation ;
Original file line number Diff line number Diff line change 1212
1313const DeprecatedColorPropType = require ( 'DeprecatedColorPropType' ) ;
1414const ReactPropTypes = require ( 'prop-types' ) ;
15- const ViewStylePropTypes = require ( 'ViewStylePropTypes ' ) ;
15+ const DeprecatedViewStylePropTypes = require ( 'DeprecatedViewStylePropTypes ' ) ;
1616
1717const TextStylePropTypes = {
18- ...ViewStylePropTypes ,
18+ ...DeprecatedViewStylePropTypes ,
1919
2020 color : DeprecatedColorPropType ,
2121 fontFamily : ReactPropTypes . string ,
You can’t perform that action at this time.
0 commit comments