react-native-macos/packages/react-native-codegen
Scott Kyle 6e0fa5f15e Support optional types for C++ TurboModules
Summary:
Update C++ TurboModule codegen to wrap nullable types in `std::optional` whereas before the conversion would cause a crash.

Changelog:
Internal

Reviewed By: mdvacca, nlutsenko

Differential Revision: D35299708

fbshipit-source-id: 7daa50fe8b16879c5b3a55a633aa3f724dc5be30
2022-04-01 16:58:52 -07:00
..
buck_tests Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
e2e Remove folly import in GenerateModuleObjCpp 2022-03-22 17:10:18 -07:00
scripts Use realpath instead of readlink 2022-02-22 02:23:02 -08:00
src Support optional types for C++ TurboModules 2022-04-01 16:58:52 -07:00
.babelrc Rewrite ObjC++ module generator 2020-09-29 14:39:40 -07:00
.prettierrc JS: Upgrade to Prettier v2.4.1 [1/n] 2021-11-02 22:14:16 -07:00
BUCK Remove compiler_flags from BUCK modules 2021-10-14 15:34:29 -07:00
DEFS.bzl fix //xplat/js/react-native-github:codegen_rn_components_schema_rncore (#33518) 2022-03-30 14:12:50 -07:00
README.md docs: add README and specify file in package.json (#28507) 2020-04-03 11:34:58 -07:00
package.json Bump codegen to 0.0.14 (#33475) 2022-03-23 11:50:27 -07:00

README.md

react-native-codegen

Version

Installation

yarn add --dev react-native-codegen

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like