Replies: 5 comments 1 reply
-
I'm also interested in setting this up. Happy to explore this together. I found this guide: https://www.youtube.com/watch?v=TKvL2dasRrE |
Beta Was this translation helpful? Give feedback.
-
hmm, I noticed this in the readme now.
|
Beta Was this translation helpful? Give feedback.
-
I noticed that as well, @moritzWa. Personally, I think a shared UI package is different than something like Solito, which has the goal of leveraging NextJS for your native app (i.e: using the file based routing from your next app for your native app). If this is out-of-scope for this project that is understandable, but I think something as simple as tailwind+nativeWind+react-native-web would enable a single UI package shared across both projects. But I'd love someone more knowledgeable than me to tell me why this isn't achievable! :-) |
Beta Was this translation helpful? Give feedback.
-
I'm still not sure how solito works unless its one app that ships to both mobile and web. What I'm looking to do is write react native components in the shared UI package, more specifically react-native-reusables based on shadcn. Then use that same component in both web and expo. I'm stuck on getting the transpilers to work. All I'm trying to do now is to render a react-native component inside a new next repo. Has anyone seen anything like this? Is bringing in expo inside of next necessary? As seen in this adapter here. |
Beta Was this translation helpful? Give feedback.
-
'use dom' https://github.com/EvanBacon/expo-dom-components-canary-example |
Beta Was this translation helpful? Give feedback.
-
Describe the feature you'd like to request
Right now, the
ui
package is only forweb
. However, given we are using bothTailWind
andNativeWind
, it'd be great if we could have a single UI package for both platforms.Describe the solution you'd like to see
A single UI package for both Web and Native styling:
import { Button } from '@acme/ui'
import { NativeButton } from '@acme/ui'
Additional information
react-native-web
might be a good way to normalize the API between web and native components.Beta Was this translation helpful? Give feedback.
All reactions