Home of Zapp react
/react native
components, using
react-native-web to share across
platforms, based on News UK's times-components
We require MacOS with Node.js (version >=8 with npm v5), yarn (latest) and watchman installed. Native development requires Xcode, Android Studio and JDK 8.
You can try without these requirements, but you'd be on your own.
- Run
yarn
to install dependencies - Components can be seen running in a storybook:
- web storybook
yarn storybook
- go to http://localhost:9001
- native storybook
yarn storybook-native
and leave it runningyarn ios
to start the iOS app- To start the Android app:
- Start a virtual device
yarn android
- If you get build errors, check your JDK version with
javac -version
, which should printjavac 1.8.XXXX
. Earlier or later versions may not work.
- go to http://localhost:7007
The current React-Native version opens the url 10.0.0.2:8081
when remote
debugging is enabled. This only works if this ip redirects to localhost
.
In order to remote debug react native app on via localhost
you need to follow
this particular sequence:
yarn storybook
- navigate to
localhost:8081/debugger-ui
yarn android
oryarn ios
- if android:
cmd+M
and enable Remote Debugging
- if android:
Tests | Covered | CI |
---|---|---|
Unit tests, UI tests and Integration tests | ✅ | Travis Build |
Visual Regression tool (Dextrose) | ✅ | Not automated |
Functional Regression tool (Fructose) | ✅ | Not automated |
See the CONTRIBUTING.md for an extensive breakdown of the project
yarn commit
will commit files (same as git commit
), and will aid the
contributor with adding a suitable commit message inline with
conventional changelog