Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with react-native-compat + Expo Go crashes on iOS when trying to create a Web3Wallet instance #44816

Closed
Patryqss opened this issue Jun 6, 2024 · 3 comments
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

Comments

@Patryqss
Copy link

Patryqss commented Jun 6, 2024

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 device

Steps 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

System:
  OS: macOS 14.4.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 1.28 GB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.18.2
    path: ~/.nvm/versions/node/v18.18.2/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.8.1
    path: ~/Documents/Test-Expo-and-Web3Wallet/node_modules/.bin/npm
  Watchman:
    version: 2023.11.27.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK:
    API Levels:
      - "33"
      - "34"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-33 | Intel x86_64 Atom
      - android-33 | Google TV Intel x86 Atom
      - android-33 | Google APIs ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10671973
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.11
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.1
    wanted: 0.74.1
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

At the start of application:
ERROR  react-native-compat: Application module is not available

And after clicking on the button, it just crashes, there are no logs at all.

Reproducer

https://github.com/Patryqss/Test-Expo-and-Web3Wallet

Screenshots and Videos

Screen.Recording.2024-06-06.at.15.22.16.mov
Copy link

github-actions bot commented Jun 6, 2024

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.74.2. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@cortinico cortinico added Type: Expo Issues that are related to Expo CLI/EAS or other integration built on top of React Native and removed Needs: Triage 🔍 labels Jun 6, 2024
Copy link

github-actions bot commented Jun 6, 2024

⚠️ Issue is Related to Expo
ℹ️ It looks like your issue is related to Expo and not React Native core. Please open your issue in Expo's repository. If you are able to create a repro that showcases that this issue is also happening in React Native vanilla, we will be happy to re-open.

@github-actions github-actions bot closed this as completed Jun 6, 2024
@cortinico
Copy link
Contributor

Also for the issue related to @walletconnect/react-native-compat, please open this same issue against the library issue tracker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants