NitroUI is:
- React, JSX, Typescript
- sync rendering on main thread
- Static Hermes with Nitro libraries
- fast at startup and runtime
- has OTA and hot reloading
- fewer abstractions, close to bare metal
It’s built on 5 years of Marc’s work on Nitro and just the beginning.
Most of Unistyles' C++ exists to work around Fabric: cloning ShadowNodes, committing outside React.
NitroUI has no ShadowTree. React mutates native views directly on the main thread.
So the port is pure TS. Same StyleSheet.create, fewer moving parts.
Expect alpha soon.
So... @NitroUI came out yesterday, and my first thought was: what about @vuejs ? 😂
I really liked what the folks at @mrousavy and Callstack are building, so I couldn't resist.
Meet NitroUI Vue, an independent, open-source Vue 3 renderer for NitroUI.
I already have Vue SFCs, reactivity and even `v-model` working with native views on both iOS and Android.
It's VERY early, literally day one of the project. There's still a lot to do, but I thought it would be fun to build this in public and get the Vue community involved too.
If you want to play with it or help build it, you're more than welcome!
GitHub: https://t.co/I3u4K0xiBt
Docs: https://t.co/jSbAcKYRY9
Same iOS app. One screen rewritten. Half the load time.
We dropped NitroUI into Mastodon’s existing app and rebuilt just the Hashtags screen:
• Swift: 1.1s
• NitroUI: 0.5s
Incrementally adopt NitroUI in your apps. Stay tuned for full brownfield support!
I know Marc has wanted to go fully single-threaded and drop the middle abstraction layers for a long, long time. Congrats on the launch! 🎉
Also happy to see @LynxJS_org's layout engine Starlight picked over Yoga 😉
Some more technical thoughts for the nerds 🧵: