// Metro module 1017 (f1018). import { ReactNativeLibraries } from "./Module997"; import { debug } from "./Module817"; import * as _Module1018 from "./Module1018"; import * as _Module1020 from "./Module1020"; import * as _valuePromise from "./valuePromise_1021"; import * as _Module1022 from "./Module1022"; import { RN_GLOBAL_OBJ } from "./Module816"; const getPromisePolyfill = function getPromisePolyfill() { return _valuePromise; }; export function polyfillPromise() { if (ReactNativeLibraries.Utilities) { let c12627_0 = _valuePromise; _Module1018; _Module1020; ReactNativeLibraries.Utilities.polyfillGlobal("Promise", () => c12627_0); } else { debug.warn("Could not polyfill Promise. React Native Libraries Utilities not found."); } } export { getPromisePolyfill }; export function requireRejectionTracking() { return _Module1022; } export function checkPromiseAndWarn() { try { const Promise2 = ReactNativeLibraries.Promise; const promisePolyfill = getPromisePolyfill(); if (Promise2 !== _valuePromise) { debug.warn("You appear to have multiple versions of the \"promise\" package installed. This may cause unexpected behavior like undefined `Promise.allSettled`. Please install the `promise` package manually using the exact version as the React Native package. See https://docs.sentry.io/platforms/react-native/troubleshooting/ for more details."); } if (promisePolyfill !== RN_GLOBAL_OBJ.Promise) { debug.warn("Unhandled promise rejections will not be caught by Sentry. See https://docs.sentry.io/platforms/react-native/troubleshooting/ for more details."); } else { debug.log("Unhandled promise rejections will be caught by Sentry."); } } catch ($e) { debug.warn("Unhandled promise rejections will not be caught by Sentry. See https://docs.sentry.io/platforms/react-native/troubleshooting/ for more details."); } }