Code Monkey home page Code Monkey logo

react-native-stanza-demo's Introduction

react-native-stanza-demo

Test repository for integrating Stanza.io with React Native. (incredibly disorganized)

Tentative Setup Instructions:

1. npm install stanza.io --save
2. npm install react-native-browser-builtins --save
3. npm install rn-nodeify --save-dev 
4. ./node_modules/.bin/rn-nodeify --install --hack 
//Definitely need stream, crypto and something else for "vm", but did not track down which module vm came from yet.

For your package.json, adding a postinstall can be helpful:

"postinstall": "rn-nodeify --install --hack"

Note: I had to use this commit, which is not yet on NPM for rn-nodeify.

Note Again, you probably don't need everything, but you definitely need stream, crypto and something else for "vm", but did not track down which module vm came from yet.

After the above process, index.ios.bundle and index.android.bundle will be properly built by the packager.

Upon connecting, random-bytes may throw an "secure random number generation not supported by this browser", this is caused by not having react-native-crypto properly installed.

react-native-stanza-demo's People

Stargazers

 avatar Fatih Ayyildiz avatar Tsiry Sandratraina avatar James Wann avatar Evgeniy Khrykin avatar

Watchers

Neustradamus avatar James Cloos avatar Tj avatar Sanjeet Kishore  avatar  avatar

react-native-stanza-demo's Issues

ios working, android not working

hello @MattFoley , I made the transactions you did in turn. ios worked, but android not worked.
android response is returning null. But when I try fetch it works
ios:
simulator screen shot 28 mar 2017 os 2 12 19android:
screenshot_2017-03-28-14-00-34-694-01

What could I have done wrong?

Can't find variable Buffer

I installed all the packages and executed rn-nodeify --install --hack after that. ios build successfully but shows red screen with this message Can't find variable Buffer. I can see that buffer is installed on the project

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.