https://github.com/bschwind/yoga-rs?files=1
I eventually want a React Native esque framework but written in Rust instead of JS. Still a ways away though, I don't have much time to work on it.
https://github.com/bschwind/yoga-rs?files=1
I eventually want a React Native esque framework but written in Rust instead of JS. Still a ways away though, I don't have much time to work on it.
React Native runs a JS VM in a separate thread and communicates to the native platform code (Java and objective c) to tell it where to draw things. The native code then passes things like touch events back to the JS thread.
I want to replace the JS thread with native code to hopefully increase performance and gain advantages from Rust such as its nice type system and the Cargo ecosystem.
I have a proof of concept running Tokio and Serde to talk back and forth on Android between Java and Rust but it doesn't do much yet. Needs a lot more time to get anything serious going.
However, another contributor to my repo is doing some interesting work with Yoga here (though it's not quite related to cross-platform mobile apps):
https://github.com/victorporof?tab=repositories
I say "contributor" but he's basically the one doing the heavy lifting on the bindings lately
For now it's just Flexbox and I think that covers most developers' needs.
[0] https://hacks.mozilla.org/2018/02/css-grid-for-ui-layouts/