Back out "[react-native][PR] Make Flow and PropType types checks consistent for view style props."

Summary: Reverting due to problems with prepack.

Reviewed By: gaearon

Differential Revision: D9482931

fbshipit-source-id: 0ec5d0fb80dab32a07521a465dd2a501e6bb4d30
This commit is contained in:
Eli White 2018-08-23 11:25:41 -07:00 committed by Facebook Github Bot
parent 0bad11b610
commit 97472892d7
1 changed files with 15 additions and 16 deletions

View File

@ -10,7 +10,6 @@
'use strict'; 'use strict';
const AnimatedNode = require('AnimatedNode');
const ColorPropType = require('ColorPropType'); const ColorPropType = require('ColorPropType');
const LayoutPropTypes = require('LayoutPropTypes'); const LayoutPropTypes = require('LayoutPropTypes');
const ReactPropTypes = require('prop-types'); const ReactPropTypes = require('prop-types');
@ -33,22 +32,22 @@ const ViewStylePropTypes = {
borderLeftColor: ColorPropType, borderLeftColor: ColorPropType,
borderStartColor: ColorPropType, borderStartColor: ColorPropType,
borderEndColor: ColorPropType, borderEndColor: ColorPropType,
borderRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderRadius: ReactPropTypes.number,
borderTopLeftRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderTopLeftRadius: ReactPropTypes.number,
borderTopRightRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderTopRightRadius: ReactPropTypes.number,
borderTopStartRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderTopStartRadius: ReactPropTypes.number,
borderTopEndRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderTopEndRadius: ReactPropTypes.number,
borderBottomLeftRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderBottomLeftRadius: ReactPropTypes.number,
borderBottomRightRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderBottomRightRadius: ReactPropTypes.number,
borderBottomStartRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderBottomStartRadius: ReactPropTypes.number,
borderBottomEndRadius: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderBottomEndRadius: ReactPropTypes.number,
borderStyle: ReactPropTypes.oneOf(['solid', 'dotted', 'dashed']), borderStyle: ReactPropTypes.oneOf(['solid', 'dotted', 'dashed']),
borderWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderWidth: ReactPropTypes.number,
borderTopWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderTopWidth: ReactPropTypes.number,
borderRightWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderRightWidth: ReactPropTypes.number,
borderBottomWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderBottomWidth: ReactPropTypes.number,
borderLeftWidth: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), borderLeftWidth: ReactPropTypes.number,
opacity: ReactPropTypes.oneOfType([ReactPropTypes.number, ReactPropTypes.instanceOf(AnimatedNode)]), opacity: ReactPropTypes.number,
/** /**
* (Android-only) Sets the elevation of a view, using Android's underlying * (Android-only) Sets the elevation of a view, using Android's underlying
* [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation). * [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation).