Common Issues
Solutions to common problems you might encounter.
Inspector Not Showing
Symptoms
- The floating button doesn't appear
- Tapping components does nothing
Solutions
-
Ensure you're in development mode
// The inspector only works when __DEV__ is true
console.log('Dev mode:', __DEV__); -
Check component wrapping
// Make sure Inspector wraps your entire app
<Inspector>
<App /> {/* App must be inside Inspector */}
<InspectorDevMenu />
</Inspector> -
Clear cache and restart
npx expo start --clear
# or
npx react-native start --reset-cache
Source Info Not Found
Symptoms
- Tapping shows "No source info available"
- Editor doesn't open
Solutions
-
Clear Metro cache
npx react-native start --reset-cache
# or
npx expo start --clear -
Some library components don't have source info
Third-party library components (from node_modules) typically don't include source location metadata. This is expected behavior.
-
Verify Metro plugin is configured
metro.config.jsconst { withInspector } = require('react-native-dev-inspector/metro');
module.exports = withInspector(config);
Wrong Component Selected
Symptoms
- Tapping selects parent instead of child
- Selection seems off
Solutions
-
Tap more precisely - The inspector finds the deepest component at the tap location
-
Check for Pressable wrappers - Some components are wrapped in touchable areas that intercept taps
-
Use the hierarchy breadcrumb - You can navigate through parent components by tapping items in the breadcrumb
Metro Connection Issues
Symptoms
- "Failed to launch editor" errors
- Dev server not reachable
Solutions
-
Check Metro is running
npx expo start
# or
npx react-native start -
Verify correct port
<Inspector devServerUrl="http://localhost:8081">
<App />
</Inspector> -
Android emulator specific
Android emulator uses
10.0.2.2for localhost:const devUrl = Platform.OS === 'android'
? 'http://10.0.2.2:8081'
: 'http://localhost:8081';
TypeScript Errors
Symptoms
- Type errors when importing
Solutions
All packages include TypeScript definitions. If you see type errors:
-
Update packages
npm update react-native-dev-inspector -
Check TypeScript version
Requires TypeScript 4.7+
-
Restart TypeScript server
In VS Code:
Cmd+Shift+P> "TypeScript: Restart TS Server"
Expo Go Limitations
Symptoms
- Works in development builds but not Expo Go
Why
Expo Go has limited support for custom Metro middleware.
Solution
Use development builds for the best experience:
npx expo run:ios
# or
npx expo run:android
New Architecture (Fabric) Issues
Symptoms
- Inspector doesn't find components
- Crashes or errors in Fabric mode
Solutions
The inspector supports Fabric, but some methods differ:
-
Update to latest version
npm update react-native-dev-inspector -
Check React Native version
Requires React Native 0.68+
-
Report bugs
If you encounter Fabric-specific issues, please open an issue.