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:
nd-02110114
2018-09-27 17:20:13 -07:00
committed by Facebook Github Bot
parent 00b1f93fae
commit c18458b394
15 changed files with 39 additions and 42 deletions

View File

@@ -9,7 +9,7 @@
'use strict';
const ColorPropType = require('ColorPropType');
const DeprecatedColorPropType = require('DeprecatedColorPropType');
const DeprecatedViewPropTypes = require('DeprecatedViewPropTypes');
const Image = require('Image');
const NativeMethodsMixin = require('NativeMethodsMixin');
@@ -118,7 +118,7 @@ const ToolbarAndroid = createReactClass({
/**
* Sets the toolbar subtitle color.
*/
subtitleColor: ColorPropType,
subtitleColor: DeprecatedColorPropType,
/**
* Sets the toolbar title.
*/
@@ -126,7 +126,7 @@ const ToolbarAndroid = createReactClass({
/**
* Sets the toolbar title color.
*/
titleColor: ColorPropType,
titleColor: DeprecatedColorPropType,
/**
* Sets the content inset for the toolbar starting edge.
*