https://github.com/jimmylv/demo.rax-weex-app
React Native everywhere, with Web and Weex container
https://github.com/jimmylv/demo.rax-weex-app
rax react react-native weex
Last synced: 4 months ago
JSON representation
React Native everywhere, with Web and Weex container
- Host: GitHub
- URL: https://github.com/jimmylv/demo.rax-weex-app
- Owner: JimmyLv
- Created: 2017-03-21T10:09:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-06T09:16:29.000Z (over 7 years ago)
- Last Synced: 2025-01-15T06:16:26.895Z (6 months ago)
- Topics: rax, react, react-native, weex
- Language: JavaScript
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rax-demo-app
## Setup and Installation
```bash
git clone [email protected]:JimmyLv/demo.rax-weex-app.git rax-demo && cd $_
yarn install
``````bash
time yarn install
yarn install v0.21.3
warning [email protected]: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
✨ Done in 106.15s.
yarn install 13.75s user 8.51s system 20% cpu 1:46.53 total
```## Getting Started
### `npm run start`
Runs the app in development mode.
Open [http://localhost:8080](http://localhost:8080) to view it in the browser.
The page will reload if you make edits.
### `npm run test`
You can run jest with test coverage.
### `npm run lint`
You will see the lint errors in the console.
### `npm run lint:fix`
And fix some of lint errors automatically.
### `npm run stylelint`
You can also run the linter for styling.
### `npm run build`
Builds the app for production to the `build` folder.
## Universal "Gotchas"
- DOM & DOM like **`window`** & **`document`** do not exist on the server - so using them, or any library that uses them (jQuery for example) will not work.
- If you need to use them, consider limiting them to wrapping them situationally with the imported *isWeb / isNode / isWeex* features from Universal. `import {isWeb, isWeex, isNode} from 'universal-env'`;