Skip to content

Commit 863a4a2

Browse files
chore: Update id type definition
1 parent 9cb1552 commit 863a4a2

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
@@ -49,7 +49,7 @@ type Props = $ReadOnly<{|
4949
disabled?: ?boolean,
5050
focusable?: ?boolean,
5151
hitSlop?: ?EdgeInsetsProp,
52-
id?: ?string,
52+
id?: string,
5353
importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),
5454
nativeID?: ?string,
5555
onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,

Libraries/Components/View/ViewPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ export type ViewProps = $ReadOnly<{|
511511
*
512512
* See https://reactnative.dev/docs/view#id
513513
*/
514-
id?: ?string,
514+
id?: string,
515515

516516
/**
517517
* 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
@@ -92,7 +92,7 @@ export type TextProps = $ReadOnly<{|
9292
*
9393
* See https://reactnative.dev/docs/text#nativeid
9494
*/
95-
id?: ?string,
95+
id?: string,
9696

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

0 commit comments

Comments
 (0)