mirror of
https://github.com/tappollo/booster.git
synced 2026-04-28 17:45:56 +08:00
add try catch to Sentry init call
This commit is contained in:
18
app/index.js
18
app/index.js
@@ -7,13 +7,17 @@ import "@react-native-firebase/app";
|
||||
import * as Sentry from "@sentry/react-native";
|
||||
import { env, sentry } from "./src/app.json";
|
||||
|
||||
Sentry.init({
|
||||
dsn: sentry,
|
||||
environment: env,
|
||||
enabled: !__DEV__,
|
||||
debug: __DEV__,
|
||||
});
|
||||
|
||||
enableScreens();
|
||||
|
||||
try {
|
||||
Sentry.init({
|
||||
dsn: sentry,
|
||||
environment: env,
|
||||
enabled: !__DEV__,
|
||||
debug: __DEV__,
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
AppRegistry.registerComponent("booster", () => App);
|
||||
|
||||
Reference in New Issue
Block a user