babel-preset-react-native-web3
It is experimental but looks like it's working on web3 version 0.x
Last updated 3 years ago by agrcrobles .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-preset-react-native-web3 
SYNC missed versions from official npm registry.

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 super basic implementation of randombytes.

Can be considered as a workaround, since I used also global.Buffer and global.process, but that worked.

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

Current Tags

  • 0.0.4                                ...           latest (3 years ago)

4 Versions

  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 1
This Week 2
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |