Skip to content

Commit

Permalink
Standard Flow type for style prop
Browse files Browse the repository at this point in the history
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 9c29ee1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/StyleSheet/StyleSheet.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const flatten = require('flattenStyle');


export type Styles = {[key: string]: Object}; export type Styles = {[key: string]: Object};
export type StyleSheet<S: Styles> = {[key: $Keys<S>]: number}; 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); let hairlineWidth = PixelRatio.roundToNearestPixel(0.4);
if (hairlineWidth === 0) { if (hairlineWidth === 0) {
Expand Down

0 comments on commit 9c29ee1

Please sign in to comment.