0

i'm currently building a react-native webapp. My phantom wallet extension network is changed to 127.0.0.1:8899, but the app seems to not be able to detect the phantom wallet itself. Would appreciate any help I can get. Here's some screenshots: enter image description here enter image description here

2
  • 1
    the quality of this question would be greatly improved by replacing these screenshots with code blocks. folks aren't generally interested in retyping code from scratch to reproduce
    – trent.sol
    Jul 21, 2022 at 0:42
  • hey @trent.sol thanks for your feedback. Will do so the next time. Appreciate it
    – naynim
    Jul 21, 2022 at 12:21

1 Answer 1

2

so i managed to figure out a work around with the help of @moraispgsi from https://github.com/solana-labs/wallet-adapter/issues/412

seems like there's a need to specify the exact folder to import from enter image description here

instead of "import { useWallet...} from '@solana/wallet-adapter-react

3
  • That's odd. I am importing from "@solana/wallet-adapter-react" and it works just fine...
    – sohrab
    Jul 21, 2022 at 3:00
  • 1
    @sohrab Do you happen to be building on react native as well?
    – naynim
    Jul 21, 2022 at 12:22
  • I did a while ago but my current one is plain react. Things may have changed...
    – sohrab
    Jul 21, 2022 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.