r/reactnative • iOS & Android • 2d ago

SwiftUI React Native v7 — Bringing the real SwiftUI to React Native

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/

101 Upvotes

12 comments sorted by

14

u/Cryo0007 2d ago

It would be insane if you bring them as it is to Android and web just like react native paper

4

u/BumblebeeWorth3758 iOS & Android 1d ago

That’s exactly what we have in mind for the next step :)

1

u/Warm_Mobile_757 1d ago

can't wait!

1

u/Cryo0007 5h ago

I am up for contributing to that

3

u/xekushuna 2d ago

Seconded

2

u/UnhappyCable859 2d ago edited 2d ago

Isn’t this what expo does? Or u mean for devs who don’t use expo?!

3

u/BumblebeeWorth3758 iOS & Android 2d 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.

2

u/ProgramsFun 2d ago

I feel like almost every new project uses expo it just makes dev so much easier

5

u/Calm_Seal170 2d ago

What does it render on Android? Material UI?

2

u/MinskLeo 1d 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

u/IsuruKusumal 2d ago

Just do native UI at this point, it's not that hard