WalletConnect / web3modal-react-native

Web3Modal React-Native SDK
https://web3modal.com
Apache License 2.0
44 stars 14 forks source link

[bug]: Can't find variable React #118

Closed shan-c closed 6 months ago

shan-c commented 6 months ago

Description

I've imported '@web3modal/wagmi-react-native' and included in the the react native app. I get this error which says can't find variable React

Web3Modal SDK version

1.0.1

Output of npx react-native info

System: OS: macOS 13.5.2 CPU: (10) arm64 Apple M1 Pro Memory: 98.06 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 16.15.0 path: ~/.nvm/versions/node/v16.15.0/bin/node Yarn: version: 1.22.19 path: /opt/homebrew/bin/yarn npm: version: 8.19.4 path: ~/mobile-app-old/mobile-app/node_modules/.bin/npm Watchman: version: 2023.03.20.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.12.0 path: /Users/shanthan/.rvm/gems/ruby-2.7.6/bin/pod SDKs: iOS SDK: Platforms:

Expo Version (if applies)

No response

Steps to reproduce

Import the package into a react native project running on react-native ~ 0.72.4

Snack, code example, screenshot, or link to a repository

shan-c commented 6 months ago

@xav @arein @chris13524 @0xAsimetriq

arein commented 6 months ago

@ignaciosantise cc

ignaciosantise commented 6 months ago

Hi @shan-c 👋 can you check if this solution works for you? https://github.com/WalletConnect/modal-react-native/issues/30#issuecomment-1631083948

ignaciosantise commented 6 months ago

also check this: https://github.com/WalletConnect/web3modal-react-native/issues/58

glitch-txs commented 6 months ago

duplicate https://github.com/WalletConnect/modal-react-native/issues/106