Rename StyleProp to DangerouslyImpreciseStyleProp

Summary:
We want to rename these types to be more clear what they are actually for. I did this with a find and replace:

```
import type {StyleProp} from 'StyleSheet';
```

to

```
import type {DangerouslyImpreciseStyleProp} from 'StyleSheet';
```

and `StyleProp` to `DangerouslyImpreciseStyleProp`.

Reviewed By: yungsters

Differential Revision: D7178609

fbshipit-source-id: 32952e0c3a8b6aceef306f1f3c18844feb18f1aa
This commit is contained in:
Eli White 2018-03-07 12:03:28 -08:00 committed by Facebook Github Bot
parent ee26d9bcb0
commit 49ffc9fada
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ import type {
LayoutStyle
} from 'StyleSheetTypes';
export type StyleProp = StyleObj;
export type DangerouslyImpreciseStyleProp = StyleObj;
export type Styles = _Styles;
export type StyleSheetStyle = _StyleSheetStyle;
type StyleSheet<+S: Styles> = $ObjMap<S, (Object) => StyleSheetStyle>;
@ -136,7 +136,7 @@ module.exports = {
* array, saving allocations and maintaining reference equality for
* PureComponent checks.
*/
compose(style1: ?StyleProp, style2: ?StyleProp): ?StyleProp {
compose(style1: ?DangerouslyImpreciseStyleProp, style2: ?DangerouslyImpreciseStyleProp): ?DangerouslyImpreciseStyleProp {
if (style1 != null && style2 != null) {
return [style1, style2];
} else {