Upgrade from Web3Modal to Reown AppKit for React Native
This document outlines the steps to migrate from the old @web3modal
packages to the new @reown/appkit
packages in your React Native project.
Step 1. Replace the dependencies in your code and package.json
- Run
yarn install
after replacing the packages
Step 2. Update your AppKit config
Step 3. Update your Hooks usage Update your hook imports as follows:
Step 4. Update your Components usage Update your component imports as follows:
Step 5. Update your config for Universal Wallets Update email wallet specific imports as follows:
Step 6. Update your import to support Coinbase Wallet Update coinbase connector import as follows:
Step 1. Replace the dependencies in your code and package.json
- Run
yarn install
after replacing the packages
Step 2. Update your AppKit config
Step 3. Update your Hooks usage Update your hook imports as follows:
Step 4. Update your Components usage Update your component imports as follows:
Step 5. Update your config for Universal Wallets Update email wallet specific imports as follows:
Step 6. Update your import to support Coinbase Wallet Update coinbase connector import as follows:
- If you are using ethers v5, follow the same steps but replacing
ethers
withethers5
Step 1. Replace the dependencies in your code and package.json
- Run
yarn install
after replacing the packages
Step 2. Update your AppKit config
Step 3. Update your Hooks usage Update your hook imports as follows:
Step 4. Update your Components usage Update your component imports as follows:
Step 5. Update email wallet specific imports as follows:
Step 6. Update your import to support Coinbase Wallet Update coinbase connector import as follows:
Final notes
- Ensure that you have updated all relevant configurations and imports in your project to reflect the changes from Web3Modal to AppKit.
- Test your application thoroughly to ensure that the migration has been successful and that all functionality is working as expected.
- Check our AppKit example for React Native to compare with your implementation in case you are having issues
Was this page helpful?