Hacker News new | ask | show | jobs
by nostrademons 3387 days ago
Ironically, there's now a backport of React Native back to the web, which renders the stock React Native components using vanilla <divs> and <spans>.

https://github.com/necolas/react-native-web

If you're doing cross-platform prototyping, it can actually be easier than writing the app in React (or vanilla JS) and then porting to React Native, because the React Native elements are at a slightly higher semantic level of abstraction than stock DOM elements. The markup it generates is pretty atrocious, but if you just want to get something up on the screen, you can work out your design compromises first and then optimize it.

1 comments

Wow. Thanks for sharing. This is quite nice. If done well, maybe it can enable some kind of playground, cross-platform editing. E.g. an editor on iPad.