Giter VIP home page Giter VIP logo

Comments (14)

jadertao avatar jadertao commented on July 24, 2024

I try to reproduce this issue according your package.json but failed. Everything works good for me.
try to remove all node_modules and run yarn cache clean reinstall again.

I think there is some problems with node_modules/base-x, check out its version which in my test project is 3.0.5(both in node_modules/base-x/package.json and yarn.lock) and it works well with react-native and eosjs-rn.

from eosjs-rn.

marcoLuo avatar marcoLuo commented on July 24, 2024

eosjsTest.zip
it's my react-native project, can you give me a hand? @JadeTao

from eosjs-rn.

marcoLuo avatar marcoLuo commented on July 24, 2024

check out its version which in my test project
my base-x verion is also 3.0.5

from eosjs-rn.

jadertao avatar jadertao commented on July 24, 2024

eosjsTest.zip
it's my react-native project, can you give me a hand? @JadeTao

hey, this projects uses eosjs. I can run it smoothly after I switch to eosjs-rn instead.

from eosjs-rn.

marcoLuo avatar marcoLuo commented on July 24, 2024

.
i can run it smoothly on IOS, but failed on Andriod

from eosjs-rn.

jadertao avatar jadertao commented on July 24, 2024

still ok with Android Simulator Google Nexus 5X -6.0.0- API 23 with eosjs-rn

from eosjs-rn.

marcoLuo avatar marcoLuo commented on July 24, 2024

can you speak chinese? use wechat? haha~ @JadeTao

from eosjs-rn.

jadertao avatar jadertao commented on July 24, 2024

you can send me ur wechat via email

from eosjs-rn.

marcoLuo avatar marcoLuo commented on July 24, 2024

you can send me ur wechat via email

ok, thanks

from eosjs-rn.

marcoLuo avatar marcoLuo commented on July 24, 2024

you can send me ur wechat via email

i have sent email to you but not respond, did you received the email?

from eosjs-rn.

jadertao avatar jadertao commented on July 24, 2024

email

no...and I test my google mail. it works.

from eosjs-rn.

jadertao avatar jadertao commented on July 24, 2024

I have figured out this problem.
It is because base-x v3.0.5 use Uint8Array#fill method, which is not supported in JavaScriptCore(the react native javascript engine).
And the temporary solution is:

  1. add "base-x": "3.0.4" to your package.json.
  2. re-install node modules.
  3. run npm ls base-x. make sure there is no [email protected].
    btw. base-x is planning to revert to es5.

related issue:
https://github.com/uport-project/react-native-uport-connect/issues/10
cryptocoinjs/base-x#51

——
update:
i'm confused too.
i can use Uint8Array in my own project but can't in this test project.
i don't know why.

from eosjs-rn.

jadertao avatar jadertao commented on July 24, 2024

core-js helps out.
just import 'core-js' in the 1st line of index.js.

from eosjs-rn.

marcoLuo avatar marcoLuo commented on July 24, 2024

core-js helps out.
just import 'core-js' in the 1st line of index.js.

it also helps me out. tks

from eosjs-rn.

Related Issues (6)

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.