Skip to content

Commit a3ecb80

Browse files
chore: Update id type definition
1 parent dc2bbfd commit a3ecb80

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Libraries/Components/Touchable/TouchableWithoutFeedback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type Props = $ReadOnly<{|
6565
disabled?: ?boolean,
6666
focusable?: ?boolean,
6767
hitSlop?: ?EdgeInsetsProp,
68-
id?: ?string,
68+
id?: string,
6969
importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),
7070
nativeID?: ?string,
7171
onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,

Libraries/Components/View/ViewPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ export type ViewProps = $ReadOnly<{|
547547
*
548548
* See https://reactnative.dev/docs/view#id
549549
*/
550-
id?: ?string,
550+
id?: string,
551551

552552
/**
553553
* Used to locate this view in end-to-end tests.

Libraries/Text/TextProps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export type TextProps = $ReadOnly<{|
103103
*
104104
* See https://reactnative.dev/docs/text#nativeid
105105
*/
106-
id?: ?string,
106+
id?: string,
107107

108108
/**
109109
* Specifies largest possible scale a font can reach when `allowFontScaling` is enabled.

0 commit comments

Comments
 (0)