animo / aries-mobile-sdk

Apache License 2.0
8 stars 2 forks source link

Create hello world turbo module for react native #35

Open TimoGlastra opened 2 years ago

TimoGlastra commented 2 years ago

Using react-native-tscodegen and writing the native module in c++. Should also be consumable as library. RN 0.65 and 0.66 have made improvements I think to using JSI and TurboModules. This is just to validate if we can already use it to build libraries. It's not clear to me yet how to do this.

The main thing I'm having trouble finding is calling C++ directly (so no Java/Swift in between)

Projects already using JSI:

Otherwise looking at Kotlin / Swift would maybe be a good option (also for uniffi-rs)

TimoGlastra commented 2 years ago

See https://github.com/blu3beri/react-native-awesome-module

TimoGlastra commented 2 years ago

https://github.com/blu3beri/react-native-turbomodule-tscodegen

berendsliedrecht commented 2 years ago

https://github.com/blu3beri/react-native-turbomodule-tscodegen

Android still needs to link for tscodegen to turbomodule. Will work on this soon.