Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Amsterdam/pingping-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

662 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PingPing React Native · PRs Welcome

Security

If you see or suspect any vulnerabilities please read the security policy in order to report them.

Development

First read contributing

Setup

🚨Make sure you have Xcode 13 installed !

Before executing the steps listed in the list below, please checkout the environment setup of react native. Follow the steps under the React Native CLI Quickstart. Until you have installed the cocoapods for Xcode. Also get the correct config/keys.js and ios/sentry.properties + android/sentry.properties

  1. Install the latest (LTS) version of [Nodejs](https://nodejs.org/en/download/)
  2. git clone https://github.com/Amsterdam/pingping-native
  3. yarn install
  4. yarn postinstall
  5. cd ios && pod install && cd ..
  6. npx react-native run-ios a simulator should spin up and React-native should start

Screens

Screens are to be considered as if they were pages on a webpage. Screens will only import components from the components folder and other dependencies. But will never import other screens. Screens are bundled in a stack navigator to navigate through them. Stack navigators are bundled in a tabnavigator to switch between stacks.

Components

The components folder includes components structured by stack. If a component is used in more than one stack it should be placed in the components/shared folder. These components are considered reusable and can be used freely throughout any screen or component.

Services

Things that are not components or screens should probably go here. For instance, the middleware to present notifications within the app can be found here.

Apollo

The pingping native app uses an apollo client to communicate with the apollo server. All files related to apollo/graphql can be found in this folder. We have a distinction between local and network queries/mutations.

Sentry

The PingPing app uses sentry to log client errors, the sentry dsn and tokens have been hidden away from this repo. If you are a part of the PingPing team ask one of the developers for the keys and instructions.

Rules

The following rules apply:

  • A component can define nested components or services. It cannot use or define screens.
  • A screen can define nested components or services.
  • A service can define nested services. It cannot use or define components or screens.
  • Read the contributing file and stick to the rules for branching/file and folder structures.

About

The official Ping Ping react-native repo.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors