1.0.0-beta.30 • Published 4 years ago
@iota/pearl-diver-react-native v1.0.0-beta.30
@iota/pearl-diver-react-native
IOTA transaction nonce searcher for react native apps.
Installation
npm install @iota/pearl-diver-react-native
Automatic linking:
react-native link @iota/pearl-diver-react-native
Usage
import { composeAPI } from '@iota/core'
import { attachToTangle } from '@iota/pearl-diver-react-native';
const iota = composeAPI({
provider: 'http://...',
attachToTangle
})
const seed = 'SOME9GOOD9RANDOM9SEED...'
const transfers = [{
address: '9'.repeat(81),
value: 0
}]
const depth = 3
const minWeightMagnitude = 14
iota.prepareTransfers(seed, transfers)
.then(trytes => iota.sendTrytes(trytes, depth, minWeightMagnitude))
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜@iota/pearl-diver-react-native
and addPearlDiver.xcodeproj
- In XCode, in the project navigator, select your project. Add
libPearlDiver.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import org.iota.PearlDiver.PearlDiverPackage;
to the imports at the top of the file - Add
new PearlDiverPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':@iota/pearl-diver-react-native' project(':@iota/pearl-diver-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/@iota/pearl-diver-react-native/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':@iota/pearl-diver-react-native')
1.0.0-beta.30
4 years ago
1.0.0-beta.23
4 years ago
1.0.0-beta.21
5 years ago
1.0.0-beta.19
5 years ago
1.0.0-beta.16
5 years ago
1.0.0-beta.15
5 years ago
1.0.0-beta.12
5 years ago
1.0.0-beta.11
5 years ago
1.0.0-beta.10
5 years ago
1.0.0-beta.9
5 years ago
1.0.0-alpha.a09e7908
5 years ago
1.0.0-alpha.66ccc99f
5 years ago
1.0.0-alpha.e5bd9497
5 years ago
1.0.0-alpha.912642aa
5 years ago
1.0.0-alpha.899a376d
5 years ago
1.0.0-alpha.42086419
5 years ago
1.0.0-beta.8
5 years ago
1.0.0-beta.7
5 years ago
1.0.0-beta.99b9fa96
5 years ago
1.0.0-beta.a4e57cc3
5 years ago
1.0.0-beta.782a2845
5 years ago
1.0.0-beta.2ca60312
5 years ago
1.0.0-beta.caa3daa5
5 years ago
1.0.0-beta.281e54a4
5 years ago
1.0.0-beta.6
5 years ago
1.0.0-beta.84aa7305
5 years ago
1.0.0-beta.7160afe6
6 years ago
1.0.0-beta.c594fede
6 years ago
1.0.0-beta.b5365c47
6 years ago
1.0.0-beta.a85af3c8
6 years ago
1.0.0-beta.722117ce
6 years ago
1.0.0-beta.a1883550
6 years ago
1.0.0-beta.cda45022
6 years ago
1.0.0-beta.96000eb5
6 years ago