React Native research #1965
-
I started tinkering around with Radix support in RN. I'm not sure I have the time to get this all working, but it's definitely possible. I figured I'd drop my findings here for anyone interested in adding RN support to look at. Everything stems from
https://github.com/nandorojo/zeego is an interesting project. It is essentially using the Radix API to create entrypoint components that try to use native APIs on native platforms, and Radix UI on the web. It's essentially the best of both worlds, where you can use the same API on all platforms, but get native iOS & Android UIs on mobile devices. It doesn't have a lot of components yet, but it's a good starting point. That said, proper Radix support for RN would be amazing since it could serve as a fallback where native APIs are missing (something really common in the RN universe). Since RN was created, the RN community has been dying for a headless UI kit. NativeWind + Radix
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Thanks @corysimmons for this comprehensive analysis. Tinkered a bit with React Native (Expo) + Radix myself last week, but was put off but the hundreds of warnings. There are some decent universal (web + native) UI systems available, like https://tamagui.dev, so its definitely doable. |
Beta Was this translation helpful? Give feedback.
-
I made most primitives work on RN https://github.com/mrzachnugent/react-native-reusables/tree/main/packages. The |
Beta Was this translation helpful? Give feedback.
I made most primitives work on RN https://github.com/mrzachnugent/react-native-reusables/tree/main/packages.
The
reusables
folder is a RN ui/shadcn and the other packages are radix-ui/primitives on the web and its native equivalent for iOS and Android.