jhugman / uniffi-bindgen-react-native

A uniffi bindings generator for calling Rust from react-native
https://jhugman.github.io/uniffi-bindgen-react-native/
Other
50 stars 5 forks source link

Example app showcasing integration #137

Open Johennes opened 1 month ago

Johennes commented 1 month ago

@trevoranderson has recently reported issues getting a library built with UBRN integrated into an application. I think this process can be quite fiddly as we've seen with the example app bootstrapped by create-react-native-library in the latest version. Maybe it would be worth to actually create an example app integrating an example library generated with UBRN?

This could possibly also be helpful for testing changes to UBRN or also for documenting changes for UBRN consumers. I think React Native itself must have something similar sitting behind the diffs in the migration guide.

jhugman commented 4 weeks ago

This may be in the wheelhouse of @boek. What do you think, Jeff?

boek commented 4 weeks ago

I'll pick this up!

trevoranderson commented 4 weeks ago

Yeah, this is a great way to help people get started. Being able to check out an example environment that matches the end state of the official guide saves time when starting anew because you don't have to follow the guide step-by-step again, and also helps diagnose environment issues (if the sample app doesn't work, something in the environment is wrong)