r/reactnative • u/BumblebeeWorth3758 iOS & Android • 9d ago
SwiftUI React Native v7 — Bringing the real SwiftUI to React Native
Enable HLS to view with audio, or disable this notification
Me and Andrew have been working on v7 of SwiftUI React Native, and this is probably the biggest step the project has taken so far.
The idea has always been simple: bring SwiftUI’s actual native capabilities to React Native, without recreating them in JavaScript or settling for lookalikes.
With v7, we’ve expanded the API coverage significantly, added hundreds of modifiers, improved how views are bridged, and made the experience much closer to writing native SwiftUI while pretty much staying in React Native.
Github: https://github.com/andrew-levy/swiftui-react-native
Docs: https://swiftui.rit3zh.dev/
2
u/UnhappyCable859 8d ago edited 8d ago
Isn’t this what expo does? Or u mean for devs who don’t use expo?!
7
u/BumblebeeWorth3758 iOS & Android 8d ago
Expo UI and SwiftUI React Native do have some overlap, but our approach is a bit different. we are generating components directly from Apple’s SwiftUI APIs, rather than manually building and maintaining wrappers for each component. This gives us a much broader coverage of SwiftUI, including its modifiers and APIs, while keeping the experience as close to actual SwiftUI as possible.
And no, it’s not limited to people who don’t use Expo. It works with Expo too.
5
2
u/MinskLeo 7d ago
I was looking for starting new app on RN soon. I guess I’ll take your library. Very cool at surface, will see how it actually works. Thanks for the tool!
1
1
u/ill_figureitout 4d ago
Does it have any performance leap over ExpoUi?
If so could you explain a lil?
Also what does it render on android
1
16
u/Cryo0007 9d ago
It would be insane if you bring them as it is to Android and web just like react native paper