Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
/ serlo-abc Public archive

App to provide free and open source literacy training for refugees

License

Notifications You must be signed in to change notification settings

serlo/serlo-abc

Repository files navigation

🚧 Out of maintenace: Looking for new maintainers 🚧

Unfortunately we are unable to maintain this project further. Thus we are looking for a new maintainer. Please contact us in case you are interested.


Serlo logo

Serlo ABC

Expo Build (master) Expo Build (development)

Download on the App Store Get it on Google Play

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 storybook

Starts the storybook.

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.

yarn lint

Reports possible issues in all JavaScript code with ESLint.

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.

Legal

Apple, the Apple logo and App Store are trademarks of Apple Inc. Google Play and the Google Play logo are trademarks of Google LLC.