@akroma-project/akroma-react-native
v0.0.2
Published
Akroma Native Modules for React Native.
Downloads
1
Readme
Akroma React Native
This package is used to communicate with the Akroma network. It started as a fork of https://github.com/cawfree/web3-react-native The main Javascript was rewrote as Typescript and much of the Android module was updated. The Swift code has not yet been updated or tested.
Development
yarn build
yalc push
🚀 Getting Started
Using npm
:
npm install --save akroma-react-native
Using yarn
:
yarn add akroma-react-native
Install Locally
Using npm
:
npm install /akroma-react-native
npx react-native link akroma-react-native
Using yarn
:
yarn add file:/akroma-react-native
npx react-native link akroma-react-native
iOS
After installing, append the following lines to your app's ios/Podfile
, then execute pod install
:
# web3-react-native
pod 'secp256k1.c', '0.1.2', :modular_headers => true
pod 'web3swift', '2.2.1', :modular_headers => true
⚠️ This is an ugly workaround for existing definition constraints in the Podspec. (View Issue).
Android
In your app's AndroidManifest.xml
, you need to enable android:largeHeap
under the <application>
tag:
<application
+ android:largeHeap="true"
/>
Perform a rebuild of your compiled application by calling react-native run-android
.
Publishing Package to NPM
If you are a member of the npm orginization you can run:
npm publish --access public