react-native-macos/packages/react-native-codegen
Nicola Corti f1c614bd0e Build RN Tester with CMake (#33937)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/33937

This moves the build of RNTester from Unix Make to CMake
This will serve as a blueprint for users that are looking into using CMake end-to-end in their buildls.

In order to make this possible I had to:
* Add an `Android-prebuilt.cmake` file that works similar to the `Android-prebuilt.mk` for feeding prebuilt .so files to the consumer build.
* Update the codegen to use `JSI_EXPORT` on several objects/classes as CMake has stricter visibility rules than Make
* Update the sample native module in `nativemodule/samples/platform/android/` to use CMake instead of Make

Changelog:
[Internal] [Changed] - Build RN Tester with CMake

Reviewed By: cipolleschi

Differential Revision: D36760309

fbshipit-source-id: b99449a4b824b6c0064e833d4bcd5969b141df70
2022-06-06 08:07:14 -07:00
..
buck_tests Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
e2e Build RN Tester with CMake (#33937) 2022-06-06 08:07:14 -07:00
scripts Use realpath instead of readlink 2022-02-22 02:23:02 -08:00
src Build RN Tester with CMake (#33937) 2022-06-06 08:07:14 -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 Rename the folly `headers_only` target to warn 2022-05-26 08:17:27 -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 React Native Codegen to 0.70.0 2022-05-09 09:23:20 -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