getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.56k stars 330 forks source link

Seeking Activation example for Expo SDK51 since it no longer generates App.js! #3946

Closed ezrover closed 3 weeks ago

ezrover commented 1 month ago

OS:

Platform:

SDK:

SDK version: 5.25.0

react-native version: 0.74.2

Are you using Expo?

Are you using sentry.io or on-premise?


I have the following issue:

The provided examples dont indicate how to handle apps that no longer have App.js as their starting point as it has been removed in the latest apps generated by Expo SDK51. Please provide an example of how to activate Sentry without app.js

kahest commented 1 month ago

Hey @ezrover depending on your setup and routing instrumentation, you can init Sentry e.g. in your app/_layout.js or app/_layout.tsx, where your App or RootLayout lives. See https://docs.sentry.io/platforms/react-native/manual-setup/expo/ and https://docs.expo.dev/guides/using-sentry/#usage-with-expo-router for more info.

getsantry[bot] commented 4 weeks ago

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀