Skip to content

applicaster/ap-rn-components

Repository files navigation

The Zapp Component Library

Coverage Status Build Status

Purpose

Home of Zapp react/react native components, using react-native-web to share across platforms, based on News UK's times-components

Dev Environment

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.

Getting Started

  1. Run yarn to install dependencies
  2. Components can be seen running in a storybook:
  • web storybook
    1. yarn storybook
    2. go to http://localhost:9001
  • native storybook
    1. yarn storybook-native and leave it running
    2. yarn ios to start the iOS app
    3. 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 print javac 1.8.XXXX. Earlier or later versions may not work.
    4. go to http://localhost:7007

React-Native Remote Debugger

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:

  1. yarn storybook
  2. navigate to localhost:8081/debugger-ui
  3. yarn android or yarn ios
    • if android: cmd+M and enable Remote Debugging

Testing and code coverage

Tests Covered CI
Unit tests, UI tests and Integration tests Travis Build
Visual Regression tool (Dextrose) Not automated
Functional Regression tool (Fructose) Not automated

Contributing

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

Releases

No releases published

Packages

No packages published