ReactNative/Expo fix for SEA (#1169)

This commit is contained in:
Natnael Teferi 2021-11-28 22:05:15 -06:00 committed by GitHub
parent 6d3ea2ecc5
commit 9413142c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
lib/mobile.js Normal file
View File

@ -0,0 +1,5 @@
import Buffer from "buffer";
import { TextEncoder, TextDecoder } from "text-encoding";
global.Buffer = global.Buffer || Buffer.Buffer;
global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;