react-native
react-native copied to clipboard
react-native code-gen > Add a C++ only TurboModule example (for Android/iOS/macOS/Windows)
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
This pull request was exported from Phabricator. Differential Revision: D39011736
This pull request was exported from Phabricator. Differential Revision: D39011736
This pull request was exported from Phabricator. Differential Revision: D39011736
| 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
This pull request was exported from Phabricator. Differential Revision: D39011736
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.
This pull request was exported from Phabricator. Differential Revision: D39011736
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.
This pull request was exported from Phabricator. Differential Revision: D39011736
| Platform | Engine | Arch | Size (bytes) | Diff |
|---|---|---|---|---|
| ios | - | universal | n/a | -- |
Base commit: ea1d72921d1abd1e753a7f63380232f1f38fabea Branch: main
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.
This pull request was exported from Phabricator. Differential Revision: D39011736
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.
This pull request was exported from Phabricator. Differential Revision: D39011736
This pull request was exported from Phabricator. Differential Revision: D39011736
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.
This pull request was exported from Phabricator. Differential Revision: D39011736
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.