Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/snaps-utils/src/base64.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { VirtualFile } from './virtual-file';
export async function encodeBase64(input: Uint8Array | VirtualFile | string) {
const bytes = getBytes(input);
// In the browser, FileReader is much faster than bytesToBase64.
if ('FileReader' in globalThis) {
if ('FileReader' in globalThis && navigator?.product !== 'ReactNative') {
return await new Promise((resolve, reject) => {
const reader = Object.assign(new FileReader(), {
onload: () =>
Expand Down
Loading