I'm new to react native and I'm trying to create a live search from cloud firestore using react hooks in react native. I'm facing issues in my home screen where I want to implement the live search
setState(data); is causing the error. To set the value of any state variable
for eg. data in
const [data, setData] = useState([]);
you need to call setData(value);