MoralisWeb3 / react-moralis

Hooks and components to use Moralis in a React app
MIT License
624 stars 166 forks source link

React-Native useMoralisQuery not working #190

Closed sobodev closed 2 years ago

sobodev commented 2 years ago

import { useMoralisQuery } from "react-moralis";

const { data } = useMoralisQuery("TestLikes") This is working in react.js but not working react-native.

I can get TestLikes data from Moralis DB in react.js, but I am getting empty array as response in react-native. How can I get the data from moralis DB in react-native?

ErnoW commented 2 years ago

The same hook should work in react-native.

Make sure to use https://github.com/ethereum-boilerplate/ethereum-react-native-boilerplate Because react-native does not work out-of-the box (especially regarding some dependencies) this boilerplate will have a correct setup.

The issue-board on that repo or the moralis forum is the best place for questions if it still does not work with the boilerplate