We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d16f62 commit 3bbb520Copy full SHA for 3bbb520
packages/react-native-codegen/src/parsers/typescript/components/props.js
@@ -489,7 +489,8 @@ function buildPropSchema(
489
typeAnnotation.typeParameters?.params[0].type === 'TSUnionType' &&
490
typeAnnotation.typeParameters?.params[0].types.some(
491
element =>
492
- element.type === 'TSNullKeyword' || element.type === 'TSUndefinedKeyword',
+ element.type === 'TSNullKeyword' ||
493
+ element.type === 'TSUndefinedKeyword',
494
)
495
) {
496
optional = true;
0 commit comments