Code Monkey home page Code Monkey logo

babel-preset-react-native-web3's Introduction

babel-preset-react-native-web3

It is experimental but looks like it's working on web3 version 0.x

This makes crypto work on JavascriptCore using crypto-browserify and a pure javascript tiny implementation of randombytes.

Can be considered as a workaround, buffer and process global variable.

Overview

Getting started

# Install dependencies
yarn add --dev babel-preset-react-native-web3
yarn add web3@^0.20.2
  1. Add the following in your .babelrc
{
  "presets": [
    // "babel-preset-react-native" or "babel-preset-expo",
    "babel-preset-react-native-web3"
  ]
}
  1. Import globals in your App.js as described below:

App.js

import 'babel-preset-react-native-web3/globals';

See sample

License

MIT @ zetta

babel-preset-react-native-web3's People

Contributors

agrcrobles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

babel-preset-react-native-web3's Issues

Cleanup non issue

When my account was compromised a spam issue was created in this repo. I sincerely apologize. Cleaning up such issues via script.

It breaks debugger on expo

Debugger and HMR work fine on a React Native App.
But debugger on expo sometimes doesn't work, it is because expo uses md5-file when switching js context from JavascriptCore to Chrome for debugger.

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.