Open Puetz opened 1 year ago
Just hit the same thing.
It's because the Metro bundler is outputting the application's web content to the expo port instead of app information that Flipper is expecting. It is looking for a string to confirm a bundler is running.
I've got around it by patching the @expo/cli package to include the string. Patch below.
Note: When Flipper checks, it receives the static template from expo as it doesn't have Javascript enabled.
diff --git a/static/template/index.html b/static/template/index.html
index 57a7defb44be55c938ac0e29189abeee5ba04e5a..e117bea4e1bab96783eb998a8b6c786cbdb6d2bd 100644
--- a/static/template/index.html
+++ b/static/template/index.html
@@ -3,6 +3,8 @@
<head>
<meta charset="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
+ <meta name="flipperHack" content="React Native packager is running" />
+
<!--
This viewport works for phones with notches.
It's optimized for gestures by disabling global zoom.
The hack doesn't work for me :/
+1 same
🐛 Bug Report
Hello,
I've encountered an issue where React DevTools are not working in Flipper. It occurs for Expo apps using the new SDK version 48 and Expo-Router. In the Flipper Logs I'm getting this error message:
"D:/Flipper-win" is the path of my Flipper installation. The React DevTools Plugin is listed as unavailable and it says "Device plugin 'React DevTools' is not supported by the selected device 'sdk_gphone64_x86_64' (Android)".
I tried different emulators and Android API versions but it is always the same. The issue does not occur when I create an Expo app without Expo router.
To Reproduce
npx create-expo-app my-app --template
npx expo install react-native-gesture-handler
and add the following import to your index.ts file:import 'react-native-gesture-handler';
Otherwise you get an error when generating the native android build.npx expo start
npx expo install expo-dev-client
andnpx expo install expo-build-properties
I also tried version 0,187.1 but my android build failed with that version.
npx expo run:android
npx expo start --dev-client
When I create an app and use the blank typescript template without navigation, everything works.
Environment
package.json:
I'm running Flipper 0.187.1 on Windows (downloaded today, March 29th).
I tried Pixel 4, Pixel 6 and Nexus 6 as Android Virtual Devices with API 32 and 33.
I also built my app with EAS instead of locally but that didn't change a thing.