Skip to content
This repository has been archived by the owner on Oct 14, 2019. It is now read-only.

AStA-HTWG-Konstanz/app-rn

Repository files navigation


HTWG Campus

Build Status

Platform Status
iOS Build Status
Android Build Status

How to run

You will need to install brew, NodeJS, npm, yarn, react-native cli and either Xcode or Android Studio (including a simulator or a physical device).

git clone https://github.com/AStA-HTWG-Konstanz/app.git && cd app
yarn install
react-native run-ios

How to contribute

  • Create or take an issue
  • Create a feature branch with a correct name for the waffle bot: [issue number]-[your_branch_name]
  • Pull request + assign inf2381 as reviewer

Structure

src/ is the main folder of this app. All the JavaScript code could be found in here.

src/actions + src/reducers + src/store: Redux-related code goes in here. Redux in a nutshell is a good entry point if you are not familiar with redux.

src/backend_connection: Data logic is maintained in this directory. This includes REST calls to the backend, local storage (PouchDB) and keychain access for persisting credentials.

src/config: Constants that are used across the app like the color scheme.

src/i18n: Internalization files.

src/modules: UI related code like app screens, reusable components, etc.

src/App.js: Entry point to the app. Combines everything and starts the navigation.

src/NavigationRegistry.js: Components for react-native-navigation are registered here (app screens + custom navigation buttons).

src/package.json: Just a hack to be able to import files like this way src/modules/SelectList