From eb0ba7aff85dc0832781271864112861df15cfb6 Mon Sep 17 00:00:00 2001 From: Mike Armstrong Date: Mon, 8 May 2017 00:30:27 -0700 Subject: [PATCH] add opacity prop type to color layout Summary: color and opacity are paired and should be in the same layout style definition. this adds opacity to color Reviewed By: andrewimm Differential Revision: D5018424 fbshipit-source-id: 31d2d79 --- Libraries/StyleSheet/LayoutAndTransformColorPropTypes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/StyleSheet/LayoutAndTransformColorPropTypes.js b/Libraries/StyleSheet/LayoutAndTransformColorPropTypes.js index 4134bbf25..bd0a52cbb 100644 --- a/Libraries/StyleSheet/LayoutAndTransformColorPropTypes.js +++ b/Libraries/StyleSheet/LayoutAndTransformColorPropTypes.js @@ -13,6 +13,7 @@ const ColorPropType = require('ColorPropType'); const LayoutPropTypes = require('LayoutPropTypes'); +const PropTypes = require('react/lib/ReactPropTypes'); const TransformPropTypes = require('TransformPropTypes'); /** @@ -22,6 +23,7 @@ const LayoutAndTransformColorPropTypes = { ...LayoutPropTypes, ...TransformPropTypes, color: ColorPropType, + opacity: PropTypes.number, }; module.exports = LayoutAndTransformColorPropTypes;