Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native generator #1310

Open
derolf opened this issue May 3, 2022 · 2 comments
Open

React Native generator #1310

derolf opened this issue May 3, 2022 · 2 comments

Comments

@derolf
Copy link

derolf commented May 3, 2022

Provide RN as a generator with

  • JS code plus TypeScript and Flow typings
  • Binding of C++ code to JS through direct mapping (no async RN bridge)
@moo24
Copy link

moo24 commented May 19, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants