Closed sobodev closed 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
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?