ethereum-boilerplate / ethereum-react-native-boilerplate

The ultimate full-stack Ethereum React Native Dapp Boilerplate which gives you maximum flexibility and speed. Feel free to fork and contribute. Although this repo is called "Ethereum Boilerplate" it works with any EVM system! Happy BUIDL!👷‍♂️
MIT License
544 stars 286 forks source link

methods enableWeb3 from useMoralis is not working #26

Open josevizzn opened 2 years ago

josevizzn commented 2 years ago

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])
michael-lououngou commented 1 year ago

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