mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 11:16:06 +08:00
Move and Rename custom propType definitions in ColorPropTypes (#21371)
Summary: related #21342 TODO * move ColorPropType.js * fix flow error CheckList - [x] `yarn prettier` - [x] `yarn flow-check-android` - [x] `yarn flow-check-ios` All flow checks pass. [GENERAL] [ENHANCEMENT] [DeprecatedColorPropType.js] - Created. Pull Request resolved: https://github.com/facebook/react-native/pull/21371 Reviewed By: RSNara Differential Revision: D10087818 Pulled By: TheSavior fbshipit-source-id: 48088b441699886eef1fff3aafc2ca6015455006
This commit is contained in:
committed by
Facebook Github Bot
parent
00b1f93fae
commit
c18458b394
@@ -10,14 +10,14 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const ColorPropType = require('ColorPropType');
|
||||
const DeprecatedColorPropType = require('DeprecatedColorPropType');
|
||||
const ReactPropTypes = require('prop-types');
|
||||
const ViewStylePropTypes = require('ViewStylePropTypes');
|
||||
|
||||
const TextStylePropTypes = {
|
||||
...ViewStylePropTypes,
|
||||
|
||||
color: ColorPropType,
|
||||
color: DeprecatedColorPropType,
|
||||
fontFamily: ReactPropTypes.string,
|
||||
fontSize: ReactPropTypes.number,
|
||||
fontStyle: ReactPropTypes.oneOf(['normal', 'italic']),
|
||||
@@ -56,7 +56,7 @@ const TextStylePropTypes = {
|
||||
height: ReactPropTypes.number,
|
||||
}),
|
||||
textShadowRadius: ReactPropTypes.number,
|
||||
textShadowColor: ColorPropType,
|
||||
textShadowColor: DeprecatedColorPropType,
|
||||
/**
|
||||
* @platform ios
|
||||
*/
|
||||
@@ -107,7 +107,7 @@ const TextStylePropTypes = {
|
||||
/**
|
||||
* @platform ios
|
||||
*/
|
||||
textDecorationColor: ColorPropType,
|
||||
textDecorationColor: DeprecatedColorPropType,
|
||||
textTransform: ReactPropTypes.oneOf([
|
||||
'none' /*default*/,
|
||||
'capitalize',
|
||||
|
||||
Reference in New Issue
Block a user