Skip to content

Using Sentry.setShouldSendCallback causes Invariant Violation in AppRegistry #268

@rdev

Description

@rdev

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

Config:

Sentry.config('https://...@sentry.io/...').install()

I have following issue:

When trying to disable reporting in dev mode the app crashes on startup.

Steps to reproduce:
Set the config
Set Sentry.setShouldSendCallback(() => false);
Run the app

Actual result:
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

Expected result:
App launching

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions