From aadfe206f3233032d8742a17c1f21d4750946a41 Mon Sep 17 00:00:00 2001 From: polwex Date: Wed, 16 Jul 2025 14:54:44 +0700 Subject: aaaarggh!!! --- polyfills.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 polyfills.ts (limited to 'polyfills.ts') diff --git a/polyfills.ts b/polyfills.ts new file mode 100644 index 0000000..050c6a8 --- /dev/null +++ b/polyfills.ts @@ -0,0 +1,15 @@ +// import { polyfillGlobal } from "react-native/Libraries/Utilities/PolyfillFunctions"; +// // import 'react-native-polyfill-globals/auto'; + +// import { Buffer } from "@craftzdog/react-native-buffer"; +// polyfillGlobal("Buffer", () => Buffer); + +// // Add crypto polyfills for React Native +// import 'react-native-get-random-values'; +// import 'react-native-crypto'; + +// // Ensure crypto is available globally +// import crypto from 'crypto'; +// if (!global.crypto) { +// global.crypto = crypto; +// } -- cgit v1.2.3