For Android
npm cache clean --force
cd android && ./gradlew clean
npm i
npm run android
For iOS
Desktop -> About this Mac -> Storage -> Manage -> Developer -> delete Project Build Data and Indexes
# Delete Archived Applications
rm -r ~/Library/Developer/Xcode/Archives/*/
# Delete Devired Data
rm -r ~/Library/Developer/Xcode/DerivedData/*/
# Delete Apple cached files
rm -r ~/Library/Developer/CoreSimulator/Caches/dyld/*/*/
# Delegete cache on com.apple.DeveloperTools
rm -r /private/var/folders/dk/*/C/com.apple.DeveloperTools/*/
# Delete unused simulators
xcrun simctl delete unavailable
# Build with Xcode
For ReactNative
npm run ios --reset-cache