https://github.com/cloudle/undermarket
https://github.com/cloudle/undermarket
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudle/undermarket
- Owner: cloudle
- Created: 2017-02-24T16:36:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T23:01:24.000Z (about 9 years ago)
- Last Synced: 2025-02-15T19:22:35.931Z (over 1 year ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# React Universal UI Boilerplate
[react-native-url]: https://facebook.github.io/react-native/
[react-native-web-url]: https://github.com/necolas/react-native-web
[react-universal-ui-url]: https://npmjs.org/package/react-universal-ui
## Overview
#### A boilerplate for cross-platform React project - which let you run your [React Native][react-native-url] App on both Native (iOs, Android) and Web
Extending [React Native][react-native-url]'s initial structure using [react-native-web][react-native-web-url] and UI components form [react-universal-ui][react-universal-ui-url].
## Usage
```
git clone https://github.com/cloudle/react-universal-ui-boilerplate.git
cd react-universal-ui-boilerplate
npm install
npm run web-vendor
npm run web
```
**`web-vendor`** builds webpack's shared-dll which massively increase rebuild time for hot-reloading our code.
*(Under* **200ms** *in my machine, which is quite close to React Native's rebuild).*
## Run modes
```
npm run [web | web-vendor | ios | android]
```