Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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 (
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
}
this.setState(() => (
{
client: bugsnag({
endpoints: endpoints,
autoNotify: false,
autoCaptureSessions: false,
autoBreadcrumbs: false
}),
errorMessage: "disabledAllAppStateBreadcrumbsBehaviour"
}
))
}
disabledConsoleBreadcrumbsBehaviour = () => {
this.triggerConsoleBreadcrumbsError(
bugsnag({
endpoints: endpoints,
autoNotify: false,
autoCaptureSessions: false,
consoleBreadcrumbsEnabled: false
}),
"disabledConsoleBreadcrumbsBehaviour"
)
}
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 (
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() {