Please provide the following:
- SDK Version: 40
- Platforms(Android/iOS/web/all): Android
- Add the appropriate “Tag” based on what Expo library you have a question on.
Hi guys, when using latest SDK: 40 and trying to use Sentry or Bugsnag for crash/error reporting, the application doesn’t load and stays on splash screen
import Bugsnag from ‘@bugsnag/expo’
or
import * as Sentry from ‘sentry-expo’;
I am trying to build and test using Expo Go (android)
If I remove the above statements the application loads. We are using Push Notifications, AsyncStorage just as an FYI
Any pointers on what I am doing wrong?
…
…
…
“expo”: “~40.0.0”,
“expo-app-loading”: “^1.0.1”,
“expo-asset”: “^8.2.1”,
“expo-font”: “~8.4.0”,
“expo-image-picker”: “~9.2.0”,
“expo-notifications”: “~0.8.2”,
“expo-status-bar”: “~1.0.3”,
“formik”: “^2.2.6”,
“hex-to-rgba”: “^2.0.1”,
“prop-types”: “^15.7.2”,
“react”: “16.13.1”,
“react-dom”: “16.13.1”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz”,
“react-native-animated-loader”: “0.0.9”,
“react-native-elements”: “^3.1.0”,
“react-native-fontawesome-pro”: “^2.1.0”,
“react-native-gesture-handler”: “~1.8.0”,
“react-native-modal”: “^11.6.1”,
“react-native-popup-menu”: “^0.15.10”,
“react-native-reanimated”: “~1.13.0”,
“react-native-screens”: “~2.15.0”,
“react-native-toast-message”: “^1.4.3”,
“react-native-web”: “~0.13.12”,
“react-native-webview”: “11.0.0”,
“rn-sliding-up-panel”: “^2.4.5”,
…
…
…
…
App.jsx
import React from “react”;
import {
Roboto_400Regular,
Roboto_500Medium,
Roboto_700Bold
} from “@expo-google-fonts/roboto”;
import AppLoading from “expo-app-loading”;
import * as Font from “expo-font”;
import Toast from “react-native-toast-message”;
import { MenuProvider } from “react-native-popup-menu”;
import { configureFontAwesomePro } from “react-native-fontawesome-pro”;
//Application Imports
import { UserContextProvider } from “contexts/UserContext”;
import Application from “components/Application”;
// Icon Import(s)
configureFontAwesomePro();
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
fontsLoaded: false
};
}
_loadResourcesAsync = async () => {
return Promise.all([
Font.loadAsync({
Roboto_400Regular,
Roboto_500Medium,
Roboto_700Bold
})
]);
};
_handleLoadingError = (error) => {
console.warn(error);
};
_handleFinishLoading = () => {
this.setState({ fontsLoaded: true });
};
render() {
if (this.state.fontsLoaded) {
return (
<Toast ref={(ref) => Toast.setRef(ref)} />
);
} else {
return (
);
}
}
}
Thanks