This example shows how to use react-native-web which allows you to develop React components for native and web without rewriting existing code. It is used by Twitter, Uber etc.
Poi works with react-native-web
without config, feel free to import react-native
in your code since it's aliased to react-native-web
by default.
This example adds two addtional babel plugins:
react-hot-loader/babel
for hot reloading React components.babel-plugin-react-native-web
for removing unused dependencies fromreact-native-web
, e.g.react-art
.
In this directory run:
yarn
yarn dev
Start dev server to preview your app.
Build your app for production use.