DEV Community

Discussion on: React Devs, Why don't you use React Native for Web?

Collapse
 
evanbacon profile image
Evan Bacon • Edited

👋 I'm the developer working on Expo for web. I noticed that you said you haven't actually used React Native for web so hopefully I can help respond to a few of your points.

in web we have the ability to make much more unique designs and take advantage of the whole HTML, JS, CSS world to create some iconic looking products.

Not sure what the argument is here, a react-native-web project has full access to React DOM. React Native for web with Expo also has packages like react-native-gesture-handler which enable easy access to iconic native paradigms which aren't often found in web apps.

the code share between the two has always been pretty small.

IMHO there is a lot more to an app (web or mobile) than the stateless components and data providers. Ideally a universal app would be sharing accessibility, theming, safe-area, media-queries (really anything with a context provider). Deployment related metadata, icons, splash screens, etc... The things one probably shouldn't share would be related to the larger navigation architecture, and platform input states (like hover styles).

For that I think graphql is a much better tool, since the retrieval and processing of data is where all the real work is done.

A very good point! React Native for web and GraphQL aren't mutually exclusive tools, I've noticed that lots of developers tend to use them together.

Collapse
 
benbot profile image
Benjamin Botwin

Hey man, thanks for taking the time to respond!

Let me see if I can clarify what I was saying.

Not sure what the argument is here, a react-native-web project has full
access to React DOM. React Native for web with Expo also has packages like > react-native-gesture-handler which enable easy access to iconic native
paradigms which aren't often found in web apps.

Thread Thread
 
redbar0n profile image
Magne

I think the last part of your post got MIA. :) Would be interesting to read it!