Describe app here
https://reactnative.dev/docs/environment-setup
brew install node # or whichever node manager you prefer (n, nvm, etc)
brew install watchman
brew install rbenv ruby-build
export GEM_HOME=$HOME/.gem
export PATH=$GEM_HOME/bin:$PATH
eval "$(rbenv init - zsh)"
rbenv install 2.7.6
n 18
git clone cd repo-name yarn install npx pods-install yarn start
npx react-native@latest init cd
Change the export line in ./ios/.xcode.env to reflect the actual node location. For example, if using n:
export NODE_BINARY="$HOME/n/bin/node"
yarn add @kingstinct/react-native-healthkit yarn add @react-native-async-storage/async-storage yarn add axios yarn add react-native-toast-message
yarn install npx pod-install
<key>NSHealthShareUsageDescription</key>
<string>Read and understand health data.</string>
<key>NSHealthUpdateUsageDescription</key>
<string>Share workout data with other apps.</string>
<!-- Below is only required if requesting clinical health data -->
<key>NSHealthClinicalHealthRecordsShareUsageDescription</key>
<string>Read and understand clinical health data.</string>
- Open the ios/ folder of your project in Xcode
- Select the project name in the left sidebar
- In the main view select '+ Capability' and double click 'HealthKit'
To enable access to clinical data types, check the Clinical Health Records box.
yarn start # Then press 'i'
watchman watch-del-all
watchman shutdown-server
yarn deploy
cd ios
pod cache clean --all
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
pod setup
pod install