mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix flow-type of selectionColor (#48184)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48184 Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D66962089 fbshipit-source-id: cd45784d830a12a620800290235a5a1cad3097f3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
47822e9048
commit
c31b42aaa2
+2
-2
@@ -17,7 +17,7 @@ import type {
|
||||
AccessibilityState,
|
||||
Role,
|
||||
} from '../Components/View/ViewAccessibility';
|
||||
import type {TextStyleProp} from '../StyleSheet/StyleSheet';
|
||||
import type {ColorValue, TextStyleProp} from '../StyleSheet/StyleSheet';
|
||||
import type {
|
||||
LayoutEvent,
|
||||
PointerEvent,
|
||||
@@ -212,7 +212,7 @@ export type TextProps = $ReadOnly<{
|
||||
*
|
||||
* See https://reactnative.dev/docs/text#selectioncolor
|
||||
*/
|
||||
selectionColor?: ?string,
|
||||
selectionColor?: ?ColorValue,
|
||||
|
||||
dataDetectorType?: ?('phoneNumber' | 'link' | 'email' | 'none' | 'all'),
|
||||
|
||||
|
||||
@@ -8574,7 +8574,7 @@ export type TextProps = $ReadOnly<{
|
||||
style?: ?TextStyleProp,
|
||||
testID?: ?string,
|
||||
disabled?: ?boolean,
|
||||
selectionColor?: ?string,
|
||||
selectionColor?: ?ColorValue,
|
||||
dataDetectorType?: ?(\\"phoneNumber\\" | \\"link\\" | \\"email\\" | \\"none\\" | \\"all\\"),
|
||||
textBreakStrategy?: ?(\\"balanced\\" | \\"highQuality\\" | \\"simple\\"),
|
||||
adjustsFontSizeToFit?: ?boolean,
|
||||
|
||||
Reference in New Issue
Block a user