This app has been configured with the following steps:
- Add the following
postinstall
script:
yarn rn-nodeify --install url,events,https,http,util,stream,crypto,vm,buffer --hack --yarn
yarn add -D rn-nodeify
- Uncomment
require('crypto')
on shim.js react-native link react-native-randombytes
- Create file
rn-cli.config.js
module.exports = {
resolver: {
extraNodeModules: require("node-libs-react-native"),
},
};
- Add
import "./shim";
to the top ofindex.js
yarn add stellar-sdk