Getting Started

Installation

Install the SDK from npm or yarn:

npm install @vechain/react-native-wallet-link

or

yarn add @vechain/react-native-wallet-link

Peer Dependencies

Make sure to also install VeChain’s SDK dependencies:

npm install @vechain/sdk-core @vechain/sdk-network

or

yarn add @vechain/sdk-core @vechain/sdk-network

Environment Requirements

  • React Native ≥ 0.71

  • Node.js ≥ 16

  • VeWorld mobile app installed on the user’s device

  • Expo (optional but supported)

  • Access to VeChain node (Mainnet, Testnet, or custom)


Project Setup

1) Wrap your app in VeWorldProvider

To enable wallet functionality globally, wrap your root component with VeWorldProvider:

With Expo router

After you wrapped the app with the provider at the root level of your App folder create a new file named +native-intent.tsx since Expo router don't allow to use deep links to a route that doesn't exists and add the following content:

This file will handle the redirect to a specific route inside the app. You can take a look at Expo docs for further details

Inside here you can also manipulate/read data that you got from VeWorld the response.

2) Configure Deep Linking

Your app needs to handle redirects from VeWorld using deep links.

For Expo (recommended):

For iOS, update Info.plist with your URL scheme. For Android, define intent filters in AndroidManifest.xml.

💡 Tip: Use a unique app scheme to prevent collisions with other apps.

3) Verify Installation

After setup, rebuild your app and run it on a physical device with VeWorld installed. You should now be able to trigger VeWorld from your app and receive connection callbacks.

🧪 Try calling connect(publicKey) from useVeWorldWallet() — VeWorld should open and prompt for connection approval.


← Back to Overview · Next → Integration Guide

Last updated

Was this helpful?