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

Commit

Permalink
add opacity prop type to color layout
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mikearmstrong001 authored and facebook-github-bot committed May 8, 2017
1 parent 9c14749 commit eb0ba7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/StyleSheet/LayoutAndTransformColorPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

const ColorPropType = require('ColorPropType');
const LayoutPropTypes = require('LayoutPropTypes');
const PropTypes = require('react/lib/ReactPropTypes');
const TransformPropTypes = require('TransformPropTypes');

/**
Expand All @@ -22,6 +23,7 @@ const LayoutAndTransformColorPropTypes = {
...LayoutPropTypes,
...TransformPropTypes,
color: ColorPropType,
opacity: PropTypes.number,
};

module.exports = LayoutAndTransformColorPropTypes;

0 comments on commit eb0ba7a

Please sign in to comment.