How to use the sentry-expo.setUserContext function in sentry-expo

To help you get started, we’ve selected a few sentry-expo 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 ckiely91 / acrofever / native / src / boot / setup.js View on Github external
componentWillReceiveProps(nextProps) {
    if (nextProps.loggingIn === false && this.state.initialLoggingIn) {
      this.setState({ initialLoggingIn: false });
    }
    if (nextProps.user && !this.props.user) {
      Sentry.setUserContext({ id: nextProps.user.id });
    }
  }

sentry-expo

Catch your Javascript errors for your production Expo apps!

MIT
Latest version published 10 months ago

Package Health Score

64 / 100
Full package analysis