Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.

Commit eb0ba7a

Browse files
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
1 parent 9c14749 commit eb0ba7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Libraries/StyleSheet/LayoutAndTransformColorPropTypes.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
const ColorPropType = require('ColorPropType');
1515
const LayoutPropTypes = require('LayoutPropTypes');
16+
const PropTypes = require('react/lib/ReactPropTypes');
1617
const TransformPropTypes = require('TransformPropTypes');
1718

1819
/**
@@ -22,6 +23,7 @@ const LayoutAndTransformColorPropTypes = {
2223
...LayoutPropTypes,
2324
...TransformPropTypes,
2425
color: ColorPropType,
26+
opacity: PropTypes.number,
2527
};
2628

2729
module.exports = LayoutAndTransformColorPropTypes;

0 commit comments

Comments
 (0)