From 52154e54a29f0fc0e5dd73102bd384298a3ce460 Mon Sep 17 00:00:00 2001 From: ahmadao2214 Date: Mon, 5 Jun 2023 07:48:22 -0700 Subject: [PATCH] Create emitInt32Prop function (#37663) Summary: Create a function emitInt32Prop(name: string, optional: boolean) in parser-primitives.js. Factor out the code from [Flow](https://github.com/facebook/react-native/blob/d8ced6f8953cd896471983714e722caf50783960/packages/react-native-codegen/src/parsers/flow/components/events.js#L53-L59) and [TypeScript](https://github.com/facebook/react-native/blob/d8ced6f8953cd896471983714e722caf50783960/packages/react-native-codegen/src/parsers/typescript/components/events.js#L63-L69) into that function. Use that function in the original call site. ## Changelog: [INTERNAL][ADDED] - emitInt32Prop in parser-primitves