It is necessary to run sentry setup wizard inorder to use sentry in react native app. I dont need all the functionalies, only error handling .
Can I just install @sentry/react-native package and use the Sentry.ErrorBoundary ?
I tried referring to youtube tutorials ,referring to documentation and referring to blogs.
You can run
@sentry/wizardand then disable performance. The wizard at the current version3.4.0doesn't add any extras for performance.Run wizard by:
If you wish to setup the project manually you can do that by following these steps in the Sentry docs https://docs.sentry.io/platforms/react-native/manual-setup/manual-setup/. Not that besides the code, you also need to Build Phase to the Xcode project and
sentry.gradleto yourapp/build.gradleif you want to get automatic source maps upload to see symbolicated stack traces with the errors. (That means to see your code and files instead of the minified bundle code.)Short summary here (for current version
@sentry/[email protected]):Your
App.tsxThen you can use the ErrorBoundary like this:
More detailed information on https://docs.sentry.io/platforms/javascript/guides/react/features/error-boundary/