Coder Social home page Coder Social logo

wallet's Introduction

an eos wallet

Build project:

cd wallet
npm i

fix react-native-smart-barcode build error:

/node_modules/react-native-smart-barcode/Barcode.js

error:

import React, {
    PropTypes,
    Component,
} from 'react'
import {
    View,
    requireNativeComponent,
    NativeModules,
    AppState,
    Platform,
} from 'react-native'

correct:

import React, {
    Component,
} from 'react'
import {
    View,
    requireNativeComponent,
    NativeModules,
    AppState,
    Platform,
} from 'react-native'
import PropTypes from 'prop-types'

run android:

react-native run-android

run ios:

在xcode里面点击run

环境

npm version:3.10.10
node version:v6.11.2
gradle:2.2.3

android release版本无法发送请求的问题

将:node_modules\react-native-eosjs\src\eosjs.html文件复制到:android\app\src\main\assets文件夹下面

在 node_module/react-native-eosjs/src/index.js文件的头部添加

const iosPlatform = Platform.OS === 'IOS' ? 'true' : 'false';

将node_module/react-native-eosjs/src/index.js文件的最后部分修改:

render() {
return (<View style={{ flex: 1, height: 0, zIndex: -999999, position: 'absolute' }}>
<WebView ref="eosjs" style={{ height: 0, width: 0, backgroundColor: 'transparent' }}
source={iosPlatform === 'true' ? require('./eosjs.html') : { 'uri': 'file:///android_asset/eosjs.html' }}
// source={require('./eosjs.html')}
onMessage={(e) => { this.onMessage(e) }}
/>);
}

微信:tao709308469

wallet's People

Contributors

marcloluo avatar yugangxiang avatar bille18 avatar ben002 avatar jason-so avatar hdhmail2000 avatar superzitao avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.