Skip to content

Commit 76a7beb

Browse files
chore: Update id type definition
1 parent 8f70f26 commit 76a7beb

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
@@ -61,7 +61,7 @@ type Props = $ReadOnly<{|
6161
disabled?: ?boolean,
6262
focusable?: ?boolean,
6363
hitSlop?: ?EdgeInsetsProp,
64-
id?: ?string,
64+
id?: string,
6565
importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),
6666
nativeID?: ?string,
6767
onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,

Libraries/Components/View/ViewPropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export type ViewProps = $ReadOnly<{|
538538
*
539539
* See https://reactnative.dev/docs/view#id
540540
*/
541-
id?: ?string,
541+
id?: string,
542542

543543
/**
544544
* 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)