New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/react-native

Package Overview
Dependencies
Maintainers
11
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/react-native - npm Package Versions

23
26

6.9.0

Diff

Changelog

Source

6.9.0

Features

  • User Feedback Widget Beta (#4435)

    To collect user feedback from inside your application call Sentry.showFeedbackWidget().

    import Sentry from "@sentry/react-native";
    
    Sentry.showFeedbackWidget();
    
    Sentry.wrap(RootComponent);
    

    To change the default options add Sentry.feedbackIntegration().

    import Sentry from "@sentry/react-native";
    import * as ImagePicker from 'expo-image-picker';
    
    Sentry.init({
      integrations: [
        Sentry.feedbackIntegration({
          imagePicker: ImagePicker,
          showName: true,
          showEmail: true,
        }),
      ],
    });
    

    To learn more about the available configuration options visit the documentation.

sentry-bot
published 6.8.0 •

Changelog

Source

6.8.0

[!WARNING] This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android. See issue #4598 for more details.

Features

  • Adds Sentry Android Gradle Plugin as an experimental Expo plugin feature (#4440)

    To enable the plugin add the enableAndroidGradlePlugin in the @sentry/react-native/expo of the Expo application configuration.

    "plugins": [
      [
        "@sentry/react-native/expo",
        {
          "experimental_android": {
            "enableAndroidGradlePlugin": true,
          }
        }
      ],
    

    To learn more about the available configuration options visit the documentation.

Fixes

  • Remove error: prefix from collect-modules.sh to avoid failing iOS builds (#4570)
  • Sentry Module Collection Script Fails with Spaces in Node Path on iOS (#4559)
  • Various crashes and issues of Session Replay on Android. See the Android SDK version bump for more details. (#4529)
  • Sentry.setUser(null) doesn't crash on iOS with RN 0.77.1 (#4567)
  • Avoid importing tslib in Sentry Metro Plugin (#4573)

Dependencies

sentry-bot
published 6.7.0 •

Changelog

Source

6.7.0

[!WARNING] This release contains an issue where Cold starts can be incorrectly reported as Warm starts on Android. We recommend staying on version 6.4.0 if you use this feature on Android. See issue #4598 for more details.

Features

  • Add ignoredComponents option to annotateReactComponents to exclude specific components from React component annotations (#4517)

    // metro.config.js
    // for React Native
    const config = withSentryConfig(mergedConfig, {
      annotateReactComponents: {
        ignoredComponents: ['MyCustomComponent']
      }
    });
    
    // for Expo
    const config = getSentryExpoConfig(__dirname, {
      annotateReactComponents: {
        ignoredComponents: ['MyCustomComponent'],
      },
    });
    

Dependencies

sentry-bot
published 6.7.0-alpha.0 •

sentry-bot
published 6.6.0 •

Changelog

Source

6.6.0

Features

  • Send Sentry React Native SDK version in the Session Replay Events on iOS (#4450)

Fixes

  • Add mechanism field to unhandled rejection errors (#4457)
  • Use proper SDK name for Session Replay tags (#4428)
  • Use makeDsn from core to extract the URL from DSN avoiding unimplemented URL.protocol errors (#4395)

Changes

  • Rename navigation.processing span to more expressive Navigation dispatch to screen A mounted/navigation cancelled (#4423)
  • Add RN SDK package to sdk.packages for Cocoa (#4381)

Internal

  • Initialize RNSentryTimeToDisplay during native module init on iOS (#4443)

Dependencies

sentry-bot
published 6.5.0 •

Changelog

Source

6.5.0

Features

  • Mobile Session Replay is now generally available and ready for production use (#4384)

    To learn about privacy, custom masking or performance overhead visit the documentation.

    import * as Sentry from '@sentry/react-native';
    
    Sentry.init({
      replaysSessionSampleRate: 1.0,
      replaysOnErrorSampleRate: 1.0,
      integrations: [
        Sentry.mobileReplayIntegration({
          maskAllImages: true,
          maskAllVectors: true,
          maskAllText: true,
        }),
      ],
    });
    
  • Adds new captureFeedback and deprecates the captureUserFeedback API (#4320)

    import * as Sentry from "@sentry/react-native";
    
    const eventId = Sentry.lastEventId();
    
    Sentry.captureFeedback({
      name: "John Doe",
      email: "john@doe.com",
      message: "Hello World!",
      associatedEventId: eventId, // optional
    });
    

    To learn how to attach context data to the feedback visit the documentation.

  • Export Span type from @sentry/types (#4345)

  • Add RN SDK package to sdk.packages on Android (#4380)

Fixes

  • Return lastEventId export from @sentry/core (#4315)
  • Don't log file not found errors when loading envs in sentry-expo-upload-sourcemaps (#4332)
  • Navigation Span should have no parent by default (#4326)
  • Disable HTTP Client Errors on iOS (#4347)

Changes

  • Falsy values of options.environment (empty string, undefined...) default to production
  • Deprecated _experiments.replaysSessionSampleRate and _experiments.replaysOnErrorSampleRate use replaysSessionSampleRate and replaysOnErrorSampleRate (#4384)

Dependencies

sentry-bot
published 6.5.0-beta.1 •

sentry-bot
published 6.4.0 •

Changelog

Source

6.4.0

Features

  • Add Replay Custom Masking for iOS, Android and Web (#4224, #4265, #4272, #4314)

    import * as Sentry from '@sentry/react-native';
    
    const Example = () => {
      return (
        <View>
          <Sentry.Mask>
            <Text>${"All children of Sentry.Mask will be masked."}</Text>
          </Sentry.Mask>
          <Sentry.Unmask>
            <Text>${"Only direct children of Sentry.Unmask will be unmasked."}</Text>
          </Sentry.Unmask>
        </View>
      );
    };
    
sentry-bot
published 5.36.0 •

sentry-bot
published 6.4.0-beta.1 •

Changelog

Source

6.4.0-beta.1

Features

  • Add Replay Custom Masking for iOS, Android and Web (#4224, #4265, #4272, #4314)

    import * as Sentry from '@sentry/react-native';
    
    const Example = () => {
      return (
        <View>
          <Sentry.Mask>
            <Text>${"All children of Sentry.Mask will be masked."}</Text>
          </Sentry.Mask>
          <Sentry.Unmask>
            <Text>${"Only direct children of Sentry.Unmask will be unmasked."}</Text>
          </Sentry.Unmask>
        </View>
      );
    };
    
23
26
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc