This section covers adding blinks directly to your React Native dApp through our React Native SDK for Blinks. The SDK is completely open-source and can be found on our GitHub.
The following imports are needed to simplify the Blink integration:
useAction hook and ActionAdapter type from @dialectlabs/blinks
Blink component from @dialectlabs/blinks-react-native
Basic Usage
A getWalletAdapter function has to be defined to generate an ActionAdapter for interactions with user wallets, like wallet connect and signing transactions through the React Native dApp.
After that, the <Blink /> component can be used in the React Native dApp to render the Blink. It takes the following props:
theme - has the styling for the blink to be rendered;
action - object returned from useAction function (which requires the adapter from getWalletAdapter and Action URL);