$0.05023 0.43%
ADA · 18w

Emurgo open sources a Cardano React Native library for anybody who wants to build mobile applications

react-native-cardano Getting started

$ npm install react-native-cardano --save

Installing Rust

$ curl -sSf | sh

Follow instructions. Restart Terminal application after installation (PATH should be updated)

Install Rust targets and tools for iOS Install build targets: $ rustup target add aarch64-apple-ios armv7-apple-ios armv7s-apple-ios x86_64-apple-ios i386-apple-ios Install cargo-lipo for building: $ cargo install cargo-lipo Install Rust targets for Android

$ rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android

Android NDK should be installed for Android. Check that file in android folder has ndk.dir property and it's path is correct.

Mostly automatic installation

$ react-native link react-native-cardano

Manual installation iOS In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] Go to node_modules ➜ react-native-cardano and add RNCardano.xcodeproj In XCode, in the project navigator, select your project. Add libRNCardano.a to your project's Build Phases ➜ Link Binary With Libraries Run your project (Cmd+R) Android Open up android/app/src/main/java/[...]/ Add import io.crossroad.rnardano.CardanoPackage; to the imports at the top of the file Add new CardanoPackage() to the list returned by the getPackages() method Append the following lines to android/settings.gradle: include ':react-native-cardano' project(':react-native-cardano').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cardano/android') Insert the following lines inside the dependencies block in android/app/build.gradle: compile project(':react-native-cardano') Usage import { Wallet, HdWallet, RandomAddressChecker, PasswordProtect } from 'react-native-cardano'; Wallet .checkAddress( "DdzFFzCqrhtCUjHyzgvgigwA5soBgDxpc8WfnG1RGhrsRrWMV8u...
Continue on
Recent news
ADA +0.43% · · 8h

Yoroi updated!

Yoroi 1.3.4 was quietly released... (automatically updates) We see you #Yoroi Wallet team! 👀 - Daedalus Master Key Restore- Translation Updates- Remove Word Buttonyo-yo-yoroi!...
ADA +0.43% · · 14h

Hoskinson on Blockchain’s Role in Future Society

Speaking at Hong Kong Blockchain Week, Charles Hoskinson made some interesting points about the future of blockchain technology and its role within society. Charles Hoskinson has a brilliant mind and,...