A DAOstack Product
For Getting Started with React Native there is a very comprehensive guide on their website
https://reactnative.dev/docs/getting-started
There are two documentation options: Expo CLI Quickstart & React Native CLI Quickstart.
Choose the React Native CLI Quickstart and then choose whether you use a Mac, Linux or Windows
You will need three files
- For React Native -
env.json
- For iOS
GoogleService-Info.plist
- For Android
google-services.json
To get started you should ask one of the members of the developer for those files.
The env.json
is to be placed into the root folder of the React Native project.
The GoogleService-Info.plist
is to be placed in the ios/firebase/${ENV_FOLDER_NAME}/
and google-services.json
file is to be placed in the /android/app/src/${ENV_FOLDER_NAME}
where ENV_FOLDER_NAME is the specific env folder name (production or staging). If folders do not exist, create them.
- Clone the repo
git clone https://github.com/daostack/common.git
cd common
and runyarn
cd ios
and runpod install
- To run the application go back to the root of the project and run
yarn ios:staging
for iOS oryarn android:staging
for Android - To use test credit card details, run
yarn useTestCard
, to use your own credit card details, cancel test card by runningyarn useRealCard
.
If the project doesn't run there may be a few reasons.
The most common is:
Replace the sdk.dir path to match your environment of the file android/local.properties
in Windows sdk.dir = C:\\Users\\USERNAME\\AppData\\Local\\Android\\sdk
in macOS sdk.dir = /Users/USERNAME/Library/Android/sdk
in linux sdk.dir = /home/USERNAME/Android/Sdk
Or this error package android.support.annotation does not exist
Please enter command npx jetify
in terminal. StackOverflow
Converting JS files to TypeScript
https://developer.android.com/studio
https://apps.apple.com/us/app/xcode/id497799835?mt=12