We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94b049b commit 6374f0eCopy full SHA for 6374f0e
packages/snaps-utils/src/base64.ts
@@ -11,7 +11,7 @@ import type { VirtualFile } from './virtual-file';
11
*/
12
export async function encodeBase64(input: Uint8Array | VirtualFile | string) {
13
const bytes = getBytes(input);
14
- // In the browser, FileReader is much faster than bytesToBase64.
+ // In the browser, FileReader is much faster than bytesToBase64. This is not supported in React Native however.
15
if ('FileReader' in globalThis && navigator?.product !== 'ReactNative') {
16
return await new Promise((resolve, reject) => {
17
const reader = Object.assign(new FileReader(), {
0 commit comments