From ec66f2eeb9ffaa9dee26aa1ae8d123470e2bb6f7 Mon Sep 17 00:00:00 2001 From: shubham0142 Date: Tue, 9 May 2023 05:35:45 -0700 Subject: [PATCH] Codegen 113: add isOptionalProperty in parser (#37134) Summary: part of codegen issue https://github.com/facebook/react-native/issues/34872 Add a function isOptionalProperty(property) in the Parser object and implement it in FlowParser and TypeScriptParser, using the implementation you can find in the [parsers/flow/components/events.js](https://github.com/facebook/react-native/blob/e133100721939108b0f28dfa9f60ac627c804018/packages/react-native-codegen/src/parsers/flow/components/events.js#L172-L173) and [parsers/typescript/components/events.js](https://github.com/facebook/react-native/blob/e133100721939108b0f28dfa9f60ac627c804018/packages/react-native-codegen/src/parsers/typescript/components/events.js#L196). Use the parsers in the buildPropertiesForEvent. bypass-github-export-checks ## Changelog: [Internal][Changed]: add isOptionalProperty in parser and use it in parser events.