serlo-org/serlo-abc


https://de.serlo.org/abc

License: Apache-2.0

Language: TypeScript

Keywords: android, create-react-native-app, expo, ios, javascript, phone, react-native, react-native-app, typescript


Serlo ABC Build Status

This project was bootstrapped with Create React Native App.

Below you'll find information about performing common tasks.

Table of Contents

Requirements

Updating Create React Native App and React Native

Updating the react-native-scripts dependency of your app should be as simple as bumping the version number in package.json and reinstalling your project's dependencies.

Upgrading to a new version of React Native requires updating the react-native, react, and expo package versions, and setting the correct sdkVersion in app.json. See the versioning guide for up-to-date information about package version compatibility.

Available Scripts

yarn install

Installs the dependencies as specified in package.json according to the locked versions in yarn.lock.

yarn start

Runs your app in development mode.

Open it in the Expo app on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.

yarn test

Runs the jest test runner on your tests.

yarn test -- --watch

Runs the jest test runner on your tests in watch mode.

yarn ios

Like yarn start, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.

yarn android

Like yarn start, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see React Native docs for detailed setup).

yarn format

Formats all JavaScript code with prettier. Will be automatically run as a pre-commit git hook.

Writing and Running Tests

This project is set up to use jest for tests. Files with suffix .test.js will be loaded by jest. The jest documentation is also a wonderful resource, as is the React Native testing tutorial.

Tips and Tricks

  • If you have a local network the prevents your phone from accessing the address that is printed when running the packager, you can often work around this issue by "tethering" your computer to your phone's internet connection. Some phones call this feature "mobile hotspot." While it's very convenient, if you have a data plan where you pay for data transfer you should be careful when using this feature, especially when installing dependencies from NPM.

Project Statistics

Sourcerank 5
Repository Size 568 MB
Stars 22
Forks 4
Watchers 6
Open issues 56
Dependencies 80
Contributors 7
Tags 4
Created
Last updated
Last pushed

Top Contributors See all

Jonas Keinholz Knorrke vhaller metzgaria Patrik hackerman Toseban

Recent Tags See all

assets-s December 01, 2017
assets December 01, 2017
1.0.0 December 01, 2017
v1.0.0 October 16, 2017

Something wrong with this page? Make a suggestion

Last synced: 2017-05-19 13:54:38 UTC

Login to resync this repository