heremaps / gluecodium

Cross-language bindings generator for C++, Java, Swift, and Dart
Apache License 2.0
202 stars 27 forks source link

React Native generator #1310

Open derolf opened 2 years ago

derolf commented 2 years ago

Provide RN as a generator with

moo24 commented 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.

boriguen commented 10 months ago

Hi team, has any progress been made on this? Maybe some kinda POC?