summaryrefslogtreecommitdiff
path: root/polyfills.ts
blob: 050c6a8d4abc36989b0d1bc3be04e8177b6f3125 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
// }