From 9c29ee1504a66979d7e87f60e42d437e044a1ada Mon Sep 17 00:00:00 2001 From: Alex Kotliarskyi Date: Wed, 4 Oct 2017 14:32:01 -0700 Subject: [PATCH] Standard Flow type for style prop Reviewed By: sahrens Differential Revision: D5978082 fbshipit-source-id: bd251ed3ecc1f15595e2f5ee941e3865a225c1fd --- Libraries/StyleSheet/StyleSheet.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/StyleSheet/StyleSheet.js b/Libraries/StyleSheet/StyleSheet.js index 067ae505f..8fd9b1f6c 100644 --- a/Libraries/StyleSheet/StyleSheet.js +++ b/Libraries/StyleSheet/StyleSheet.js @@ -20,6 +20,8 @@ const flatten = require('flattenStyle'); export type Styles = {[key: string]: Object}; export type StyleSheet = {[key: $Keys]: number}; +export type StyleValue = {[key: string]: Object} | number | false | null; +export type StyleProp = StyleValue | Array; let hairlineWidth = PixelRatio.roundToNearestPixel(0.4); if (hairlineWidth === 0) {