Permalink
Browse files

Standard Flow type for style prop

Reviewed By: sahrens

Differential Revision: D5978082

fbshipit-source-id: bd251ed3ecc1f15595e2f5ee941e3865a225c1fd
  • Loading branch information...
frantic authored and facebook-github-bot committed Oct 4, 2017
1 parent d0260b4 commit 9c29ee1504a66979d7e87f60e42d437e044a1ada
Showing with 2 additions and 0 deletions.
  1. +2 −0 Libraries/StyleSheet/StyleSheet.js
@@ -20,6 +20,8 @@ const flatten = require('flattenStyle');
export type Styles = {[key: string]: Object};
export type StyleSheet<S: Styles> = {[key: $Keys<S>]: number};
export type StyleValue = {[key: string]: Object} | number | false | null;
export type StyleProp = StyleValue | Array<StyleValue>;
let hairlineWidth = PixelRatio.roundToNearestPixel(0.4);
if (hairlineWidth === 0) {

0 comments on commit 9c29ee1

Please sign in to comment.