How to use the @sentry/react-native.captureMessage function in @sentry/react-native

To help you get started, we’ve selected a few @sentry/react-native examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mapswipe / mapswipe / src / shared / common / SatImage.js View on Github external
onError = (evt) => {
        const { source } = this.state;
        const { nativeEvent: { error } } = evt;
        Sentry.addBreadcrumb({
            message: 'Image not loading',
            data: {
                url: source.uri,
                error,
            },
        });
        Sentry.captureMessage('Cannot load sat imagery', 'warning');
        console.log(error);
        // eslint-disable-next-line global-require
        this.setState({ source: require('../../../assets/noImageAvailable.png') });
    }
github OriginProtocol / origin / mobile / src / components / notification-card.js View on Github external
onPress={async () => {
            let permissions
            try {
              permissions = await PushNotification.requestPermissions()
            } catch (error) {
              Sentry.captureMessage(error.toString())
              props.onRequestClose()
            }

            await props.setNotificationsRequested(true)

            if (permissions && permissions.alert) {
              props.onRequestClose()
            }
          }}
        />
github mattermost / mattermost-mobile / app / utils / sentry / index.js View on Github external
capture(() => {
            Sentry.captureMessage(message, {logger});
        }, store);
    }
github StoDevX / AAO-React-Native / source / views / settings / screens / overview / developer.js View on Github external
sendSentryMessage = () => {
		Sentry.captureMessage('A Sentry Message', {level: 'info'})
		this.showSentryAlert()
	}
	sendSentryException = () => {