React Native
Solana integration
The @dynamic-labs/solana-extension
integrates your application with the @solana/web3.js
library, providing a Connection
and Signer
to interact with the Solana blockchain.
Installation
To install the Solana extension, run the following command:
Setup
Incorporate the Solana extension into your client using the extend method to add getSigner and getConnection methods:
Polyfils
Your React Native project might require polyfills for certain global objects. Install the necessary polyfills and set them up as follows
Installation
Include the following code in your project’s entry point to set up the polyfills:
Usage
After setup, you can interact with the Solana blockchain. Below is an example of a component that sends 1 SOL to a specified wallet address:
Was this page helpful?