React Native
Introduction
AppKit has support for Wagmi and Ethers. Choose one of these Ethereum libraries to get started.Installation
Implementation
Start by importing
createAppKit
, and wagmi packages, then create your configs as shown below.
Finally, pass your configuration to createAppKit
.Make sure you import
@walletconnect/react-native-compat
before wagmi
to avoid any issues.createAppKit
must be called before rendering the <AppKit />
component or any other AppKit UI components. Make sure to call createAppKit
at the module level, outside of your React components.Trigger the modal
To open AppKit modal you can use our default button component or build your own logic using our hooks.Getting Support ๐
Reown is committed to delivering the best developer experience. If you have any questions, feature requests, or bug reports, feel free to open an issue on GitHub!Enable Wallet Detection (Optional)
This is an optional feature that enhances the user experience by:
- Showing a green checkmark next to installed wallets
- Prioritizing installed wallets at the top of the list
- Open your
Info.plist
file. - Locate the
<key>LSApplicationQueriesSchemes</key>
section. - Add the desired wallet schemes as string entries within the
<array>
. These schemes represent the wallets you want to detect. - Refer to our Info.plist example file for a detailed illustration.
Enable Coinbase Wallet (Optional)
Coinbase Wallet support is optional. Unlike other wallets that use the WalletConnect protocol, Coinbase Wallet uses its own proprietary SDK. If you skip this setup, Coinbase Wallet simply wonโt appear in your wallet list, but all other wallets will work normally.
Follow these steps to install Coinbase SDK in your project along with our Coinbase package. Check here for more detailed information.Check Coinbase docs for more detailed information.
- Enable Expo Modules in your project running:
- Install Coinbase SDK
- Install our custom connector
yarn add @reown/appkit-coinbase-wagmi-react-native
- Run pod-install
- Enable Deeplink handling in your project following React Native docs
- Add Coinbase package in your AndroidManifest.xml and Info.Plist
- Add Coinbase response handler in your app. More info here
- Initialize
coinbaseConnector
and add it inextraConnectors
- Prefer universal links over custom schemes to avoid an app verification warning on Coinbase Wallet