ethereum-boilerplate/ethereum-react-native-boilerplate

methods enableWeb3 from useMoralis is not working

josevizzn opened this issue · 1 comments

I’m able to log in but when I try to call enableWeb3() in one of my components and I reviewed isWeb3Enabled value after that is returning false

const { enableWeb3, is Web3Enabled } = useMoralis()

useEffect(()=> {
const activateWeb3= Async () => {
     await enableWeb3({ provider: 'WalletConnect' })
     console.log('isWeb3Enabled', isWeb3Enabled) //this is always false
}

}, [isWeb3Enabled])

I have the same issue. I'd like to sign a message so I need the web3 library to do it. but I dont find how to enable web 3