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
This commit is contained in:
Rick Hanlon
2019-01-03 03:40:41 -08:00
committed by Facebook Github Bot
parent dc114260d9
commit 44a289cf26

View File

@@ -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.