Latest commit 85e098d Dec 5, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src Fix AsyncStorageExample Jun 5, 2018
README.md Add React Native examples app Jun 4, 2018
SHA Add React Native examples app Jun 4, 2018
package.json 0.9.9 Dec 5, 2018
webpack.config.js Add React Native examples app Jun 4, 2018

README.md

examples

These examples are a clone of React Native's RNTester. RNTester showcases React Native views and modules. It's used to manually verify the appearance and behavior of React Native for Web.

Try the examples app online.

To run the examples locally:

yarn examples
open ./packages/examples/dist/index.html

Develop against these examples:

yarn compile --watch
NODE_ENV=development yarn examples --watch

Notes

The RNTester examples rely on features specific to React Native's packager such as loading resolution variants of images, Babel transforms, compiling ES module dependencies, and Haste – Facebook's module system. These features are emulated in this package's webpack.config.js.

The commonjs export in react-native-web is also used to ensure that webpack can load the aliased modules correctly (as compiled ES modules are only available from the .default property of a module.)