Skip to content

Latest commit

 

History

History

with-react-native-web

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

React Native for Web example

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.

Details

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 from react-native-web, e.g. react-art.

Usage

In this directory run:

yarn
yarn dev

Script

yarn dev

Start dev server to preview your app.

yarn build

Build your app for production use.