mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-10 18:05:26 +08:00
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:
committed by
Facebook Github Bot
parent
dc114260d9
commit
44a289cf26
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user