mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-30 22:12:42 +08:00
Move and Rename custom propType definitions in LayoutPropTypes (#21370)
Summary: related #21342 TODO * move LayoutPropType.js * fix flow error CheckList - [x] `yarn prettier` - [x] `yarn flow-check-android` - [x] `yarn flow-check-ios` All flow checks pass. [GENERAL] [ENHANCEMENT] [DeprecatedLayoutPropTypes.js] - Created. [GENERAL] [ENHANCEMENT] [StyleSheetTypes.js] - add comments. Pull Request resolved: https://github.com/facebook/react-native/pull/21370 Differential Revision: D10099715 Pulled By: RSNara fbshipit-source-id: d0515fe0d56d9ed2fde50cc0bfb75b63aded1f5d
This commit is contained in:
committed by
Facebook Github Bot
parent
d6f3d37802
commit
b6b0fc1f27
@@ -11,7 +11,7 @@
|
||||
'use strict';
|
||||
|
||||
const DeprecatedColorPropType = require('DeprecatedColorPropType');
|
||||
const LayoutPropTypes = require('LayoutPropTypes');
|
||||
const DeprecatedLayoutPropTypes = require('DeprecatedLayoutPropTypes');
|
||||
const ReactPropTypes = require('prop-types');
|
||||
const DeprecatedShadowPropTypesIOS = require('DeprecatedShadowPropTypesIOS');
|
||||
const DeprecatedTransformPropTypes = require('DeprecatedTransformPropTypes');
|
||||
@@ -20,7 +20,7 @@ const DeprecatedTransformPropTypes = require('DeprecatedTransformPropTypes');
|
||||
* Warning: Some of these properties may not be supported in all releases.
|
||||
*/
|
||||
const DeprecatedViewStylePropTypes = {
|
||||
...LayoutPropTypes,
|
||||
...DeprecatedLayoutPropTypes,
|
||||
...DeprecatedShadowPropTypesIOS,
|
||||
...DeprecatedTransformPropTypes,
|
||||
backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']),
|
||||
|
||||
Reference in New Issue
Block a user