Skip to content

[React Native] Cannot capture exception as global option shouldSendCallback not defined by default #693

Closed
@logicalicy

Description

@logicalicy

I was following the helpful React Native integration read me and stumbled on an error when attempting to call the Raven.captureException() API:

Raven.captureException(ex, {
    extra: context
})

The error is specifically in the react-native.js plugin and the error is:

screen shot 2016-08-18 at 18 38 07

However, if I specify the shouldSendCallback when initialising Raven, the error disappears.

Raven.config(
    ...,
    { release: '...', shouldSendCallback: () => { ... }}
).install();

Is there a sensible default we can define for shouldSendCallback? Or can we document that it is a required config parameter?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions