From 49ffc9fada4266c3ba9751c5e8e4c475174c7e6c Mon Sep 17 00:00:00 2001 From: Eli White Date: Wed, 7 Mar 2018 12:03:28 -0800 Subject: [PATCH] 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 --- Libraries/StyleSheet/StyleSheet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/StyleSheet/StyleSheet.js b/Libraries/StyleSheet/StyleSheet.js index 8e51e73840f54b..00a69d2025ea1d 100644 --- a/Libraries/StyleSheet/StyleSheet.js +++ b/Libraries/StyleSheet/StyleSheet.js @@ -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 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 {