react-native-macos/Libraries/StyleSheet
David Buchan-Swanson 76a2ca4c9c Fix some flow errors that appear
Summary:
<!--
Thank you for sending the PR! We appreciate you spending the time to work on these changes.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html

Happy contributing!

-->

There are some errors I noticed after upgrading my flow version.  I had them in my project, and they were also reported in #11655.  These errors were ignored on master, but I went through and fixed them so the static analysis will work still.

After these changes, I receive no errors using flow `0.60.1` on latest master, or using `0.59` in my local project (which does not have the requisite ignores included).

- init a new project
     `react-native init --version <path-to-repo> helloworld`
- add the flow binary
     `yarn add -D flow-bin`
- run flow
     `yarn flow`
- make sure there are no errors in the project.
     ```
     No errors!
       Done in 23.60s.
     ```

<!--
Help reviewers and the release process by writing your own release notes

**INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

  CATEGORY
[----------]        TYPE
[ CLI      ]   [-------------]      LOCATION
[ DOCS     ]   [ BREAKING    ]   [-------------]
[ GENERAL  ]   [ BUGFIX      ]   [-{Component}-]
[ INTERNAL ]   [ ENHANCEMENT ]   [ {File}      ]
[ IOS      ]   [ FEATURE     ]   [ {Directory} ]   |-----------|
[ ANDROID  ]   [ MINOR       ]   [ {Framework} ] - | {Message} |
[----------]   [-------------]   [-------------]   |-----------|

[CATEGORY] [TYPE] [LOCATION] - MESSAGE

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->

[GENERAL][BUGFIX][./Libraries] - Fix up some flow definitions
Closes https://github.com/facebook/react-native/pull/17086

Differential Revision: D6509112

Pulled By: hramos

fbshipit-source-id: a61145b5306c666ab6510ccb9eea02d96f3decb3
2017-12-07 08:31:37 -08:00
..
__tests__ Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
ColorPropType.js Sync React Native with React 16.0.0-alpha.3 (take 2) 2017-02-27 17:30:30 -08:00
EdgeInsetsPropType.js Fix Flow errors at declaration of most major library components 2017-10-20 03:50:25 -07:00
LayoutPropTypes.js iOS: Implement margin(Start|End) styles for RN 2017-10-18 19:33:31 -07:00
PointPropType.js Update remaining PropTypes references 2017-06-12 16:03:09 -07:00
StyleSheet.js Improve types for React Native styles. 2017-11-14 13:18:33 -08:00
StyleSheetPropType.js Patch up for future React Sync 2017-02-08 14:50:43 -08:00
StyleSheetTypes.js Improve types for React Native styles. 2017-11-14 13:18:33 -08:00
StyleSheetValidation.js Fix some flow errors that appear 2017-12-07 08:31:37 -08:00
TransformPropTypes.js update docs for Transforms 2017-07-28 12:49:01 -07:00
flattenStyle.js Flat ReactNative renderer bundle [WIP] 2017-05-26 11:03:06 -07:00
normalizeColor.js Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
processColor.js Flowify Process Color 2017-04-26 11:31:56 -07:00
processTransform.js Fix parseFloat mistaken uses of "radix" 2017-05-03 23:00:39 -07:00
setNormalizedColorAlpha.js Replace usages of hexToRgb with setNormalizedColorAlpha 2016-02-09 14:58:34 -08:00