decosoftware / deco-ide

The React Native IDE
https://www.decosoftware.com/
GNU Affero General Public License v3.0
5.84k stars 311 forks source link

Integrate with React Native Web polyfills #135

Open RangerMauve opened 8 years ago

RangerMauve commented 8 years ago

There's been a few efforts to port various React Native APIs to work purely in the browser. It would be super useful if this IDE had the ability to build a project that made use of one or more of these to enable people to create apps that work not only on iOS and Android, but also anywhere that can run a browser.

The libraries that I've seen that seem most appealing are:

react-web Pretty good feature richness, seem to have some own ideas how building should be done. Developers seem to be primarily Chinese so it might have some language barriers if support is needed. Seems to have company backing which is good. react-native-web Fewer components but the docs are nice and use React Storybook for quick references on how they work, but doesn't seem to have particularly detailed docs. Seems to mostly be run by one person in their spare time. react-native-for-web Seems to be the least polished of the bunch, but could still be a viable option. More text docs than react-native-web

Obviously this would be a pretty big undertaking, but if this project had something like this it would be very unique in the ecosystem and could be immensely useful for cross platform development.

RangerMauve commented 8 years ago

According to the react-native-web readme it seems the project is somehow affiliated with Twitter.

dabbott commented 8 years ago

We are going to do this.

We want to make it easier to preview/share RN apps. We were considering going all-in on react-native-web and using it to preview/share your app. For now though, native modules are pretty important to RN, and so we're working on a better way to preview/share that's a little friendlier to native modules. This work includes customizable starter project templates, so it would lend itself nicely to other platforms.

After that we plan on revisiting adding RNW as a third platform.

RangerMauve commented 8 years ago

I was about to suggest looking into react-native-web-player for previews using web, but then I realized who I was talking to. :sweat_smile:

dabbott commented 8 years ago

Hehe :)

I can't wait till the day when we can ditch all this native simulator/xcode/android studio/obj-c/java stuff and go back to the web dev workflow. Seems like we're not quite there yet though...

RangerMauve commented 8 years ago

Yeah, I'm thinking if react-native-web provided all the same commandline functionality as react-native, it'd help a lot. Right now the hot reload and building is still on users, so it's not as quick to set up.

I guess this issue should remain open for when the project gets time to focus on it?

dabbott commented 8 years ago

Yeah, let's just leave it open. Certainly if the react-native packager supported rnw somehow that'd make things dead simple.

RangerMauve commented 7 years ago

It seems that react-native's packager was used for react-vr bundling files for WebVR. Would it make sense to look into how they did it to re-use it for react-native-web?