Error with react-native-compat + Expo Go crashes on iOS when trying to create a Web3Wallet instance #44816
Labels
Newer Patch Available
Platform: iOS
iOS applications.
Type: Expo
Issues that are related to Expo CLI/EAS or other integration built on top of React Native
Description
I'm trying to use a Web3Wallet library in my app. I followed the documentation presented here and here and I have two issues:
First, the import of
@walletconnect/react-native-compat
throws an error:react-native-compat: Application module is not available
While searching for similar problems, I only found one example but it was not solved
Second, if I try to run the app on iOS Simulator or an iPhone, running
Web3Wallet.init
(clicking on the button in the Reproducer example) crashes my Expo Go app without even throwing a single log. It may be somehow connected to the first issue but I'm not sure since it works fine on an Android deviceSteps to reproduce
Follow the Readme file in the Reproducer link
React Native Version
0.74.1
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/Patryqss/Test-Expo-and-Web3Wallet
Screenshots and Videos
Screen.Recording.2024-06-06.at.15.22.16.mov
The text was updated successfully, but these errors were encountered: