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 in our Github.
The following imports need to be made 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 adapter of type 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)