Closed AnesBkdm closed 2 weeks ago
Hey @AnesBkdm 👋 can you provide a MRE to reproduce the issue?
Since React 17, you no longer need to explicitly import the React module, and our packages work on Expo 51 without issues. So im not sure what's happening there 🤔 maybe there's a babel / metro config that is causing troubles.
Here's a sample expo app that works: https://github.com/WalletConnect/web3modal-react-native/tree/develop/apps/native
@AnesBkdm were you able to solve it? can you provide a MRE to reproduce the issue?
@AnesBkdm any news?
closing as stalled. We'll reopen if the issue persist and and Minimal Reproducible Example is provided
Describe the bug While trying to integrate WalletConnect to an existing Expo app, crash occurs claiming React is unable to detect the different modules and dependencies inside of WalletConnect.
Additionally, when modifying the indicated @web3modal files manually, WalletConnect is unable to detect the React DOM and demands to make a manual import...
import React from "react";
... in all UI files containing a pure React call like this one...
Eventually, making imports (which feel very wrong) makes WalletConnect functional, but it is impossible to make a build of the Expo app for distribution (see additional details).
SDK Version (if relevant)
To Reproduce Simply making these imports to the App.js of an existing functional Expo app after making the WalletConnect AppKit installs.
Expected behavior The App should have no problem using WalletConnect after a fresh npx expo install described in the WalletConnect AppKit docs.
Error
Smartphone (please complete the following information):
Additional context We cannot build the project nor submit it to the stores at all if we fix manually, Expo EAS throws a Fastlane issue everytime we try to do so.
Thank you for your assistance.