@sentry/react-native
Version:
Official Sentry SDK for react-native
12 lines • 554 B
JavaScript
import { LogBox } from 'react-native';
/**
* This is a workaround for using fetch on RN, this is a known issue in react-native and only generates a warning.
*/
export function ignoreRequireCycleLogs(version) {
if (version && version.major === 0 && version.minor < 70) {
// Do not ignore require cycle logs on React Native versions >= 0.70
// https://github.com/getsentry/sentry-react-native/issues/3484#issuecomment-1877034820
LogBox.ignoreLogs(['Require cycle:']);
}
}
//# sourceMappingURL=ignorerequirecyclelogs.js.map