mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
31f0796237
Summary: This adds the *option* for C++ TurboModules to use a `*CxxSpec<T>` base class that extends the existing (and unchanged) corresponding `*CxxSpecJSI` base class with code-generated methods that use `bridging::calFromJs` to safely convert types between JSI and C++. If a type conversion cannot be made, then it will fail to compile. Changelog: [General][Added] - Automatic type conversions for C++ TurboModules Reviewed By: christophpurrer Differential Revision: D34780512 fbshipit-source-id: 58b34533c40652db8e3aea43804ceb73bcbe97a5