Skip to content

codalyze/babel-preset-react-native-web3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

babel preset for react native and web3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%