Open troyshu opened 1 year ago
You'd be amazed at the solution to this. I had the same problem running Expo 49, the newest React Native version and Flipper 0.203.0.
Mine was adapted from this solution
Flipper is looking for the string "React Native packager is running." at localhost:8081
. Since we're running Expo, localhost:8081 contains the react-native-web client version of the app. We need to add the magic string.
app/_layout.tsx
import { config, GluestackUIProvider, Text } from "@gluestack-ui/themed"
import Head from "expo-router/head";
import {Stack} from "expo-router";
export default function Layout() {
return (
<>
<Head>
<title>Love List</title>
<meta name="description" content="Lovelist" />
<meta name="metro" content="<!-- React Native packager is running. -->" />
</Head>
<GluestackUIProvider config={config.theme}>
<Stack screenOptions={{ headerShown: false }} />
</GluestackUIProvider>
</>
);
}
expo.web.output
to static.The web client needs to render the head on first load (not after a React rerender)
app.json
"expo": {
"web": {
"bundler": "metro",
"output": "static"
}
}
I've followed the instructions here to use Flipper my Expo React Native project (SDK 49) but am still getting "No Devices Found" in Flipper when I run the development build Metro server. Trying to get Flipper working on my Android device.
How should I go about debugging this?
I am using a development build on my Android phone: e.g. used
eas build --profile development --platform android
, installed the build on my Android phone, connected to the local Metro server that was started withnpx expo start
Flipper logs:
When I plug my Android device into USB-C, Flipper detects the device but says React dev tools and a lot of other plugins aren't available for my application:
http://localhost:8081/json does show entries: