an eos wallet
cd wallet
npm i
/node_modules/react-native-smart-barcode/Barcode.js
error:
correct:
npm run android/react-native run-android
npm run ios/react-native run-ios
npm version:3.10.10
node version:v6.11.2
将:node_modules\react-native-eosjs\src\eosjs.html文件复制到:android\app\src\main\assets文件夹下面
在 node_module/react-native-eosjs/src/index.js文件的头部添加
const iosPlatform = PlatformOS === 'IOS' ? 'true' : 'false';
将node_module/react-native-eosjs/src/index.js文件的最后部分修改:
{return <View style= flex: 1 height: 0 zIndex: -999999 position: 'absolute' ><WebView ref="eosjs" style= height: 0 width: 0 backgroundColor: 'transparent' source=iosPlatform === 'true' ? : 'uri': 'file:///android_asset/eosjs.html' // source={require('./eosjs.html')}onMessage= { this }/>;}
微信:tao709308469