website/blog/2019-11-18-react-native-doctor.md
After over 20 pull requests from 6 contributors in the React Native Community, we're excited to launch react-native doctor, a new command to help you out with getting started, troubleshooting and automatically fixing errors with your development environment. The doctor command is heavily inspired by Expo and Homebrew's own doctor command with a pinch of UI inspired by Jest.
Here it is in action:
<p style={{textAlign: 'center'}}> <video width={700} controls="controls" autoPlay style={{borderRadius: 5}}> <source type="video/mp4" src="/img/homepage/DoctorCommand.mp4" /> </video> </p>The doctor command currently supports most of the software and libraries that React Native relies on, such as CocoaPods, Xcode and Android SDK. With doctor we'll find issues with your development environment and give you the option to automatically fix them. If doctor is not able to fix an issue, it will display a message and a helpful link explaining how to fix it manually as the following:
The doctor command is available as a part of React Native 0.62. However, you can try it without upgrading yet:
npx @react-native-community/cli doctor
doctor currently supports the following checks:
Specific to the Android environment:
ANDROID_HOME, environment variable required by the Android SDK setup.And to the iOS environment:
Huge thanks for the React Native Community for working on this, in particular @thymikee, @thib92, @jmeistrich, @tido64 and @rickhanlonii.