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:
-
1the 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.solCommented Jul 21, 2022 at 0:42
-
hey @trent.sol thanks for your feedback. Will do so the next time. Appreciate it– naynimCommented Jul 21, 2022 at 12:21
Add a comment
|
1 Answer
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
instead of "import { useWallet...} from '@solana/wallet-adapter-react
-
That's odd. I am importing from "@solana/wallet-adapter-react" and it works just fine...– sohrabCommented Jul 21, 2022 at 3:00
-
1@sohrab Do you happen to be building on react native as well?– naynimCommented Jul 21, 2022 at 12:22
-
I did a while ago but my current one is plain react. Things may have changed...– sohrabCommented Jul 21, 2022 at 12:44