How to use the sentry-expo.enableInExpoDevelopment 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 expo / harvard-cs50-app / App.js View on Github external
import Store from './state/Store';
import fonts from './styles/fonts';
import config from './utils/config';
import DownloadManager from './utils/DownloadManager';
import Data from './data/Data';

import {
  EvilIcons,
  FontAwesome,
  MaterialIcons,
  Ionicons,
  Foundation,
} from '@expo/vector-icons';

// Setup Sentry
Sentry.enableInExpoDevelopment = config.sentryEnabledInDev;
Sentry.config(config.SENTRY_PUBLIC_DSN).install();

class AppContainer extends React.Component {
  state = {
    appIsReady: false,
    firstLoad: config.firstLoad,
  };

  componentWillMount() {
    this._loadAssetsAsync();
  }

  componentWillUnmount() {
    this._downloadManager && this._downloadManager.teardown();
  }
github SKempin / Lyrics-King-React-Native / App.js View on Github external
import React from 'react';
import Sentry from 'sentry-expo';
import { createAppContainer } from 'react-navigation';
import { RootStack } from './config/router';

// Remove this once Sentry is correctly setup.
Sentry.enableInExpoDevelopment = false;

Sentry.config(
  'https://705f92b0edb44599b814955f3219c1cd@sentry.io/1367138',
).install();

// App Containers
const AppContainer = createAppContainer(RootStack);

export default class App extends React.Component {
  render() {
    return ;
  }
}
github kiwicom / mobile / App.js View on Github external
// @flow

import Sentry from 'sentry-expo';

import config from './app/core/config/application';

if (config.sentry.dsn) {
  Sentry.enableInExpoDevelopment = config.sentry.enableInExpoDevelopment;
  Sentry.config(config.sentry.dsn).install();
}

export { default } from './app/core/src/navigation';
github ckiely91 / acrofever / native / src / boot / setup.js View on Github external
import Meteor, { createContainer } from "react-native-meteor";
import { Root } from "native-base";
import { Platform } from "react-native";
import Sentry from "sentry-expo";

import App from "../App";
import LoginSignup from "../screens/loginsignup";
import { startTimesync } from "../timesync";

import { fonts } from "../styles/base";

import env from "../env";

Meteor.connect(`ws://${env.host}/websocket`);

Sentry.enableInExpoDevelopment = true;
Sentry.config(
  "https://558ee9c279d14a7a9798208f9511c04c:df9b198b53c24cc49ec9fcb182a10f61@sentry.io/301656"
).install();

Expo.AdMobInterstitial.setAdUnitID(
  Platform.OS === "ios"
    ? env.adMobInterstitialIDIOS
    : env.adMobInterstitialIDAndroid
);
if (env.env === "dev") {
  Expo.AdMobInterstitial.setTestDeviceID("EMULATOR");
}

class Setup extends Component {
  static propTypes = {
    user: PropTypes.object,

sentry-expo

Catch your Javascript errors for your production Expo apps!

MIT
Latest version published 3 months ago

Package Health Score

76 / 100
Full package analysis