How to use @bugsnag/expo - 7 common examples

To help you get started, we’ve selected a few @bugsnag/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 bugsnag / bugsnag-js / test / expo / fixtures / test-app / App.js View on Github external
import bugsnag from '@bugsnag/expo'
import React from 'react'
import { StyleSheet, Text, View, Button } from 'react-native'
const bugsnagClient = bugsnag({ apiKey: 'c8c0f735638c67f3348440fb1b2e7911' })

export default class App extends React.Component {
  render () {
    return (
github bugsnag / bugsnag-js / test / expo / features / fixtures / test-app / app / bugsnag.js View on Github external
import bugsnag from '@bugsnag/expo'

const endpoints = {
  notify: 'http://bs-local.com:9339',
  sessions: 'http://bs-local.com:9339'
}

const bugsnagClient = bugsnag({
  endpoints: endpoints,
  autoCaptureSessions: false
})

export {
    endpoints,
    bugsnagClient
}
github bugsnag / bugsnag-js / test / expo / features / fixtures / test-app / app / app_state_breadcrumbs.js View on Github external
this.setState(() => (
      {
        client: bugsnag({
          endpoints: endpoints,
          autoNotify: false,
          autoCaptureSessions: false,
          autoBreadcrumbs: false
        }),
        errorMessage: "disabledAllAppStateBreadcrumbsBehaviour"
      }
    ))
  }
github bugsnag / bugsnag-js / test / expo / features / fixtures / test-app / app / console_breadcrumbs.js View on Github external
disabledConsoleBreadcrumbsBehaviour = () => {
    this.triggerConsoleBreadcrumbsError(
      bugsnag({
        endpoints: endpoints,
        autoNotify: false,
        autoCaptureSessions: false,
        consoleBreadcrumbsEnabled: false
      }),
      "disabledConsoleBreadcrumbsBehaviour"
    )
  }
github bugsnag / bugsnag-js / test / expo / features / fixtures / test-app / app / network_breadcrumbs.js View on Github external
overrideNetworkBreadcrumbsBehaviour = () => {
    let config = buildConfiguration()
    config.autoDetectErrors = false
    config.enabledBreadcrumbTypes = ["request"]
    this.triggerNetworkBreadcrumbsError(
      Bugsnag.createClient(config),
      "overrideNetworkBreadcrumbsBehaviour"
    )
  }
github bugsnag / bugsnag-js / packages / expo / examples / taskmaster / App.js View on Github external
import bugsnag from '@bugsnag/expo';
const bugsnagClient = bugsnag('f35a2472bd230ac0ab0f52715bbdc65d');
import React from 'react';
import { StyleSheet, Text, View, Button } from 'react-native';

export default class App extends React.Component {
  render() {
    return (
github vikrantnegi / RN-Book-Search / App.js View on Github external
import bugsnag from '@bugsnag/expo';
import React from 'react';
import { Platform, StatusBar } from 'react-native';
import { ThemeProvider } from 'styled-components';
import * as Font from 'expo-font';
import * as Icon from '@expo/vector-icons';
import { AppLoading } from 'expo';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import FlashMessage from 'react-native-flash-message';

import theme, { ThemeContext } from './config/theme';
import AppNavigator from './navigation/AppNavigator';
import ErrorFallback from './components/ErrorFallback';

const bugsnagClient = bugsnag();
const ErrorBoundary = bugsnagClient.getPlugin('react');

const _makeTheme = (type = 'light') => ({
  ...theme(type),
});

const dark = _makeTheme('dark');
const light = _makeTheme('light');

export default class App extends React.PureComponent {
  state = {
    isLoadingComplete: false,
    theme: 'light',
  };

  componentDidMount() {

@bugsnag/expo

Bugsnag error reporter for Expo applications

MIT
Latest version published 26 days ago

Package Health Score

71 / 100
Full package analysis

Popular @bugsnag/expo functions