DeFiCh/wallet

View on GitHub
mobile-app/_shim.js

Summary

Maintainability
A
0 mins
Test Coverage
global.Buffer = require("buffer").Buffer;
global.process = require("process");

// eslint-disable-next-line
import 'react-native-get-random-values';
// eslint-disable-next-line
import "@ethersproject/shims";

// _shim.js to correct the behavior of React Native JS for compatibility
// TODO(fuxingloh): we could also refactor jellyfish not to use the default buffer