Skip to content

Commit 44a289c

Browse files
rickhanloniifacebook-github-bot
authored andcommitted
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
1 parent dc11426 commit 44a289c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Text/TextProps.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import type {LayoutEvent, PressEvent, TextLayoutEvent} from 'CoreEventTypes';
1414
import type React from 'React';
15-
import type {DangerouslyImpreciseStyleProp} from 'StyleSheet';
15+
import type {TextStyleProp} from 'StyleSheet';
1616
import type {
1717
AccessibilityRole,
1818
AccessibilityStates,
@@ -128,7 +128,7 @@ export type TextProps = $ReadOnly<{
128128
* See https://facebook.github.io/react-native/docs/text.html#selectable
129129
*/
130130
selectable?: ?boolean,
131-
style?: ?DangerouslyImpreciseStyleProp,
131+
style?: ?TextStyleProp,
132132

133133
/**
134134
* Used to locate this view in end-to-end tests.

0 commit comments

Comments
 (0)