Skip to content

Commit 9c29ee1

Browse files
franticfacebook-github-bot
authored andcommitted
Standard Flow type for style prop
Reviewed By: sahrens Differential Revision: D5978082 fbshipit-source-id: bd251ed3ecc1f15595e2f5ee941e3865a225c1fd
1 parent d0260b4 commit 9c29ee1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Libraries/StyleSheet/StyleSheet.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const flatten = require('flattenStyle');
2020

2121
export type Styles = {[key: string]: Object};
2222
export type StyleSheet<S: Styles> = {[key: $Keys<S>]: number};
23+
export type StyleValue = {[key: string]: Object} | number | false | null;
24+
export type StyleProp = StyleValue | Array<StyleValue>;
2325

2426
let hairlineWidth = PixelRatio.roundToNearestPixel(0.4);
2527
if (hairlineWidth === 0) {

0 commit comments

Comments
 (0)