0

so i am trying to use async storage and trying to validate if their is data in Async or not.. here is my code here is the error

i am not able to validate through...

Shru_v
  • 29
  • 6

1 Answers1

0

You should move calling the hook outside of your code

   const readData = ...


   useEffect(() => {
     const timeout = setTimeout(() => readData(), 5000)
     return () => { clearTimeout(timeout) }
   }, [])


Next time post code questions with code.

mavarazy
  • 7,208
  • 1
  • 30
  • 56