Skip to content

Commit

Permalink
chore: Update id type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Sep 8, 2022
1 parent 8f70f26 commit 76a7beb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Libraries/Components/Touchable/TouchableWithoutFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type Props = $ReadOnly<{|
disabled?: ?boolean,
focusable?: ?boolean,
hitSlop?: ?EdgeInsetsProp,
id?: ?string,
id?: string,
importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),
nativeID?: ?string,
onAccessibilityAction?: ?(event: AccessibilityActionEvent) => mixed,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Components/View/ViewPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export type ViewProps = $ReadOnly<{|
*
* See https://reactnative.dev/docs/view#id
*/
id?: ?string,
id?: string,

/**
* Used to locate this view in end-to-end tests.
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Text/TextProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export type TextProps = $ReadOnly<{|
*
* See https://reactnative.dev/docs/text#nativeid
*/
id?: ?string,
id?: string,

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

0 comments on commit 76a7beb

Please sign in to comment.