From 44a289cf26be02a3426d3e7a9fd1bf696ea48ea3 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Thu, 3 Jan 2019 03:40:41 -0800 Subject: [PATCH] Switch Text style to TextStyleProp Summary: This diff switches `Text.style` from `DangerouslyImpreciseStyle` to `TextStyleProps` and fixes/ignores the related flow issues Reviewed By: TheSavior Differential Revision: D13568053 fbshipit-source-id: b4b6f8c22323faf9592ef13697043bb181c77423 --- Libraries/Text/TextProps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Text/TextProps.js b/Libraries/Text/TextProps.js index 878e42bef6f..f70619f4b0b 100644 --- a/Libraries/Text/TextProps.js +++ b/Libraries/Text/TextProps.js @@ -12,7 +12,7 @@ import type {LayoutEvent, PressEvent, TextLayoutEvent} from 'CoreEventTypes'; import type React from 'React'; -import type {DangerouslyImpreciseStyleProp} from 'StyleSheet'; +import type {TextStyleProp} from 'StyleSheet'; import type { AccessibilityRole, AccessibilityStates, @@ -128,7 +128,7 @@ export type TextProps = $ReadOnly<{ * See https://facebook.github.io/react-native/docs/text.html#selectable */ selectable?: ?boolean, - style?: ?DangerouslyImpreciseStyleProp, + style?: ?TextStyleProp, /** * Used to locate this view in end-to-end tests.