Sentry-react-native: Missing a uninstall guide

Created on 23 Oct 2020  路  4Comments  路  Source: getsentry/sentry-react-native

OS:

  • [ ] Windows
  • [X] MacOS
  • [ ] Linux

Platform:

  • [X] iOS
  • [X] Android

SDK:

  • [X] @sentry/react-native (>= 1.0.0)
  • [ ] react-native-sentry (<= 0.43.2)

SDK version: 1.0.9

react-native version: 0.0.0

Are you using Expo?

  • [ ] Yes
  • [X] No

Are you using sentry.io or on-premise?

  • [X] sentry.io (SaaS)
  • [ ] on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

[Link to issue]

Configuration:

None of both propositions.


I have following issue:

I am on a new project and I need to uninstall Sentry from it, since there is really a strange issue with sentry using old project crendentials that I won't bother you with.

I want to completly remove sentry from my react-native project. sentry-wizard -uninstall did not do the trick since I still have build issues related to sentry.

It would be great to have a clean uninstall guide. Thanks.

Feature Request

Most helpful comment

Agree!

Im trying

  1. npx react-native unlink @sentry/react-native
    And as result I'm receiving:
Running Sentry Wizard...
version: 1.1.4 | sentry-cli version: 1.59.0
馃槩  Successfully removed Sentry from your project 馃槩
  1. After that I run: npm uninstall @sentry/react-native
  2. And manually deleted ios/sentry.properties & android/sentry.properties
  3. Then I remove ios/Podfile.lock and run npx pod-install
Downloading dependencies
Removing Sentry
Generating Pods project
  1. Finally removed the references to sentry library from my code base

All 4 comments

Agree!

Im trying

  1. npx react-native unlink @sentry/react-native
    And as result I'm receiving:
Running Sentry Wizard...
version: 1.1.4 | sentry-cli version: 1.59.0
馃槩  Successfully removed Sentry from your project 馃槩
  1. After that I run: npm uninstall @sentry/react-native
  2. And manually deleted ios/sentry.properties & android/sentry.properties
  3. Then I remove ios/Podfile.lock and run npx pod-install
Downloading dependencies
Removing Sentry
Generating Pods project
  1. Finally removed the references to sentry library from my code base

On IOS, also need to check on the Build Phases> "Bundle React Native code and images" script.
Rollback to before adding sentry.
On my case, IOS build (production) will crash because it can not find the react native bundle file.

Hello @pentolbakso. Do you remember how that Build Phase was prior to adding Sentry? I'm not entirely sure what I should revert there. I'm having the same issue on my side, where a build from TestFlight just hangs there without loading the app (I presume it's the same issue you had).

@luispinho sorry, I don't remember.. may be u could use git history for comparison

Was this page helpful?
0 / 5 - 0 ratings