A simple React Native app for accessing sustainable development goals (SDGs) data as defined by the United Nations (https://sdgs.un.org/goals)
Setup Environment
https://reactnative.dev/docs/environment-setup
The following tools are required.
Tools | Version | Extra info |
---|---|---|
Yarn | 1.22+ | |
XCode | 10.1+ | |
Android Studio | 3.5.0+ | |
Visual Studio Code | 1.32.3+ | |
Node | 10.15.3+ | |
CocoaPods | 1.7.2+ | |
Ruby | 2.6.1 | |
Detox | 17.4.4 |
# Install required dependencies
yarn install
# Install pods
cd ios
pod install
# go back to the root folder
# run ios
cd ..
yarn ios
yarn install
# connect your android device then run android
yarn android
# if you get build errors try clean and rebuild
pushd android & ./gradlew clean & popd
yarn android
yarn install
yarn validate
yarn install
yarn test
Environment setup
Install AppleSimulatorUtils
https://github.com/wix/AppleSimulatorUtils
yarn install
detox build --configuration ios
detox test --configuration ios