Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cawfree/web3-react-native
⚛️ Web3 Native Modules for React Native.
https://github.com/cawfree/web3-react-native
ethereum react-native web3
Last synced: 9 days ago
JSON representation
⚛️ Web3 Native Modules for React Native.
- Host: GitHub
- URL: https://github.com/cawfree/web3-react-native
- Owner: cawfree
- License: mit
- Created: 2020-04-21T20:22:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:24:34.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T17:47:28.575Z (14 days ago)
- Topics: ethereum, react-native, web3
- Language: JavaScript
- Size: 4.64 MB
- Stars: 62
- Watchers: 4
- Forks: 9
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# web3-react-native
[**Web3**](https://web3js.readthedocs.io/en/v1.2.6/) Native Modules for [**React Native**](https://reactnative.dev/).## 🚀 Getting Started
Using [`npm`]():
```bash
npm install --save web3-react-native
```Using [`yarn`]():
```bash
yarn add web3-react-native
```For versions less than [**React Native 0.60**](https://reactnative.dev/blog/2019/07/03/version-60), be sure to execute `react-native link` to make the native library dependencies visible to your compiled application.
### 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](https://github.com/cawfree/web3-react-native/blob/63664f366c436aed73083b6b0a5cbf0b7374bfd3/web3-react-native.podspec#L26). ([View Issue](https://github.com/cawfree/web3-react-native/issues/1)).
### Android
In your app's `AndroidManifest.xml`, [you need to](https://github.com/web3j/web3j/issues/915) enable [`android:largeHeap`](https://developer.android.com/guide/topics/manifest/application-element) under the `` tag:```diff
```Perform a rebuild of your compiled application by calling `react-native run-android`.
For usage details, please see the [**documentation**](./docs).
## ✌️ License
[**MIT**](./LICENSE)