React Native
Introduction
AppKit has support for Wagmi and Ethers. Choose one of these Ethereum libraries to get started.Installation
- React Native CLI
- Expo
- Wagmi
- Ethers
- Ethers v5
Implementation
- Wagmi
- Ethers
- Ethers v5
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.- Components
- 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
- React Native CLI
- Expo
- iOS
- Android
- 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.
Expo Compatibility: Coinbase SDK works with Expo Prebuild but not with Expo Go. Youβll need to use
expo prebuild
to generate native code before building your app.- Enable Expo Modules in your project running:
- Install Coinbase SDK
- Install our custom connector
- Wagmi
- Ethers
- Ethers v5
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
- Wagmi
- Ethers
- Ethers v5
- Initialize
coinbaseConnector
and add it inextraConnectors
- Prefer universal links over custom schemes to avoid an app verification warning on Coinbase Wallet
Examples
- Wagmi
- Ethers
- Ethers v5