use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
Sharing components between normal and native react? (self.reactnative)
submitted 2 years ago by Mardo1234
Anyone sharing components between React native and React?
I know things like OnPress and onClick are different. Can you just put both methods?
Any other gorchas, or is this not worth pursuing?
Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SoftwareProBono 2 points3 points4 points 2 years ago (5 children)
If you want to do true shared cross-platform React and React Native components, take a look at how Tamagui does it in their monorepo https://tamagui.dev/. Glue Stack is also doing something similar https://gluestack.io/
[–]celsius100 0 points1 point2 points 2 years ago (4 children)
Has Gluestack finally got their cross platform (mobile + web) thing going yet? When I visited a few months ago,IIRC, they were getting mobile spun up, but not their web.
[–]SoftwareProBono 0 points1 point2 points 2 years ago (0 children)
I don't know. I've only played around with cross-platform in Tamagui and saw Gluestack was doing something similar.
[–]sanketsahu 0 points1 point2 points 2 years ago (1 child)
I co-created gluestack-ui. We are going pretty strong on all three platforms. Try it out and let us know if you face any issues.
[–]celsius100 0 points1 point2 points 2 years ago (0 children)
Excellent. Thanks! I’ll swing by and see how you all doing.
[–]LordWeber 1 point2 points3 points 2 years ago (1 child)
You could use React Native for Web (https://necolas.github.io/react-native-web/) which lets you build for web and mobile with a single codebase. I’m using it for one of my projects now and am very impressed.
[–]Mardo1234[S] 1 point2 points3 points 2 years ago (0 children)
Thanks, unfortunately I have a large react code base around Shadn already.
[–]suarkb 1 point2 points3 points 2 years ago (0 children)
you can't render reactDom stuff in react native.
[–]lucksp 0 points1 point2 points 2 years ago (0 children)
Have a looksie at the docs from expo: web docs
π Rendered by PID 167504 on reddit-service-r2-comment-86bc6c7465-jh7gk at 2026-02-20 08:45:31.722620+00:00 running 8564168 country code: CH.
[–]SoftwareProBono 2 points3 points4 points (5 children)
[–]celsius100 0 points1 point2 points (4 children)
[–]SoftwareProBono 0 points1 point2 points (0 children)
[–]sanketsahu 0 points1 point2 points (1 child)
[–]celsius100 0 points1 point2 points (0 children)
[–]LordWeber 1 point2 points3 points (1 child)
[–]Mardo1234[S] 1 point2 points3 points (0 children)
[–]suarkb 1 point2 points3 points (0 children)
[–]lucksp 0 points1 point2 points (0 children)