React-Native Common Commands
To get the list of available emulator
1 |
emulator -list-avds |
To open a emulator
1 |
emulator -avd Pixel_API_30 |
Listing all available simulators
1 |
xcrun simctl list |
open -a Simulator
1 2 3 |
react-native run-ios --simulator="iPhone 4s" react-native run-ios --simulator="iPhone Xʀ" react-native run-ios --simulator="iPhone 6" |
Print log on Terminal
1 2 3 4 5 |
react-native log-android react-native log-ios react-native run-ios --device "Anshul’s iPhone" |
React Devtools https://github.com/facebook/react-devtools/tree/master/packages/react-devtools Reset Cache
1 |
npm start -- --reset-cache |
Update Dependency
1 2 3 |
npm i -g npm-check-updates ncu -u npm install |
1 |
react-native unlink react-native-gesture-handler --platforms ios |
1. Clear watchman watches: watchman watch-del-all. 2. Delete the […]