Open derolf opened 2 years ago
I think this would need a new generator for the react-native-jsi interface, similar to the existing generator of the dart:ffi interface. In addition, another generator for the typescript similar to the existing Dart generator would be required. JavaScript isn´t typesafe - which might become an issue, unless only generating TypeScript API bindings.
https://github.com/software-mansion/react-native-reanimated and https://github.com/ammarahm-ed/react-native-jsi-template might be a good references for react-native-jsi usage.
ReactNative developers are used to use a declarative API based on JSX syntax. Therefore, a gluelayer would still be needed to create a nice declarative API on top of the exposed imperative C++ API. I doubt such gluelayer can be effectively auto-generated.
Hi team, has any progress been made on this? Maybe some kinda POC?
Provide RN as a generator with