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:
Pieter De Baets
2024-12-09 10:20:12 -08:00
committed by Facebook GitHub Bot
parent 47822e9048
commit c31b42aaa2
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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,