expo
Expo apps: rules for public environment variables and DOM exports, and Expo’s own project and SDK checks. The React Native configuration adds the component and style rules. It requires react-native. Guide: Expo.
Selected when
Section titled “Selected when”A scope has a dependency on expo.
Checks
Section titled “Checks”expo-doctor
Section titled “expo-doctor”Runs Expo Doctor and reports each failed check with its details.
Runs at the push stage, once per scope, and loads your code and needs network access.
A native package on the wrong version for the Expo SDK builds and then crashes on the device.
What to do
Section titled “What to do”Follow the advice Expo Doctor prints, then run npx expo install --check.
Example
Section titled “Example”A react-native version that differs from the one the Expo SDK requires fails a Doctor check. Run npx expo install --check to install the matching version.
Turn it off
Section titled “Turn it off”gspot ignore expo/expo-doctor --paths "<path>" --reason "<why>"Tools and versions
Section titled “Tools and versions”| Tool | Version |
|---|---|
| eslint-plugin-expo | 1.2.1 |
| expo-doctor | 1.21.5 |