Uniffi for React Native: Rust-Powered Turbo Modules(hacks.mozilla.org) |
Uniffi for React Native: Rust-Powered Turbo Modules(hacks.mozilla.org) |
In my dream world, cross-platform modules which currently bridge separate Java/Kotlin (Android) and Swift/Obj-C (iOS) functionality into a single JavaScript API would instead bridge them into a single Rust API (which could then be bridged into JavaScript), which would allow cross-platform access to Android/iOS APIs from fast native code modules as well as from JS.
There are few pieces to put in place here, but it's something we've discussed.
The current task is teaching uniffi to support multiple foreign languages at the same time: <https://github.com/mozilla/uniffi-rs/issues/2295>.
But, yeah, what we're launching today takes you closer to your dream than it was yesterday. The rest, work is progressing.
What we're launching today is