react-native icon indicating copy to clipboard operation
react-native copied to clipboard

react-native code-gen > Add a C++ only TurboModule example (for Android/iOS/macOS/Windows)

Open christophpurrer opened this issue 2 years ago • 18 comments

Summary: Changelog:

[General][Added] - Add a C++ only TurboModule example (for Android/iOS/macOS/Windows)

[email protected] introduced a new bridging layer to ease integration for pure C++ TurboModules using C++ std:: types directly instead of the lower level jsi:: types: https://github.com/facebook/react-native/tree/v0.69.0/ReactCommon/react/bridging

This bridging layer can be used in JSI functions or more conveniently in C++ TurboModules.

Here is a example of an C++ only TurboModule which will work on Android and iOS and macOS/Windows (using microsoft/react-native-macos|windows) only using flow/TypeScript and standard C++ types.

C++ only TurboModules are very handy as they do not require to work with JSI APIs - instead std:: or custom C++ can by used.

Differential Revision: D39011736

christophpurrer avatar Oct 30 '22 19:10 christophpurrer

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Oct 30 '22 19:10 facebook-github-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Oct 30 '22 21:10 facebook-github-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Nov 07 '22 16:11 facebook-github-bot

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,101,041 +31,751
android hermes armeabi-v7a 6,470,878 +29,438
android hermes x86 7,518,668 +34,305
android hermes x86_64 7,377,112 +33,264
android jsc arm64-v8a 8,965,563 +31,324
android jsc armeabi-v7a 7,697,371 +28,995
android jsc x86 9,028,237 +33,855
android jsc x86_64 9,506,034 +32,819

Base commit: ea1d72921d1abd1e753a7f63380232f1f38fabea Branch: main

analysis-bot avatar Nov 07 '22 16:11 analysis-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Nov 07 '22 16:11 facebook-github-bot

PR build artifact for 96d84dbbe59bf7142bd695a295c28f89d4a644a1 is ready. To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

pull-bot avatar Nov 07 '22 17:11 pull-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Nov 07 '22 22:11 facebook-github-bot

PR build artifact for 7c99667436f67c5a0c6a1bdf5112def08367a7e9 is ready. To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

pull-bot avatar Nov 07 '22 22:11 pull-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Nov 08 '22 08:11 facebook-github-bot

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: ea1d72921d1abd1e753a7f63380232f1f38fabea Branch: main

analysis-bot avatar Nov 08 '22 09:11 analysis-bot

PR build artifact for 21f26499a6c469355055bb6fa732bad7a44efc64 is ready. To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

pull-bot avatar Nov 08 '22 09:11 pull-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Nov 08 '22 14:11 facebook-github-bot

PR build artifact for b96097757257af2ffedab21a267034d536eaacbc is ready. To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

pull-bot avatar Nov 08 '22 14:11 pull-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Nov 08 '22 14:11 facebook-github-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Nov 08 '22 15:11 facebook-github-bot

PR build artifact for ad118d2dd1f4fdb7471fa848f90b2c543431041e is ready. To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

pull-bot avatar Nov 08 '22 15:11 pull-bot

This pull request was exported from Phabricator. Differential Revision: D39011736

facebook-github-bot avatar Nov 08 '22 16:11 facebook-github-bot

PR build artifact for a4f286a81c2e76ecc8c9225bbdc53d6f2f6803b0 is ready. To use, download tarball from "Artifacts" tab in this CircleCI job then run yarn add <path to tarball> in your React Native project.

pull-bot avatar Nov 08 '22 17:11 pull-bot