Hi when i going to watch our device oriantion than showing this error :
ERROR TypeError: Cannot read property 'setState' of undefined, js engine: hermes
Here is code 🤞 :
useEffect(() => {
lor(); // Start listening for orientation changes
return () => {
rol(); // Stop listening when the component unmounts
};
}, []);
this is screenshots:


please fix as soon as possiable