Sharing code between native and web: React and Relay

  • Sharing code between native and web: React and Relay
  • A few other projects aim to bridge the gap between native and web, and you can read more about it .
  • Component { static propTypes = { onClick: React.
  • React Native uses index.ios.js and index.android.js as entry points to compile the respective bundles.
  • Relay has a full working example in React Native as a TodoMVC app .

Read the full article, click here.


@YLDio: “Sharing code between native and web: @Reactjs and Relay. @EricaLeCat explains it all on the YLD Blog:”


Choosing React Native comes with a set of unique advantages, such as a single ecosystem (JavaScript vs. Java/Swift/Objective-C), faster feedback loops and code reuse. All of the above makes for happy developers and, when a fully native user experience can be achieved, we can see why more teams choose to bring it on board.


Sharing code between native and web: React and Relay