Recibo este error uno por uno en repetición. Y debido a esto, mi aplicación se está cerrando en modo en vivo. Tengo de 5 a 6 FlatLists y de 2 a 3 FlatListSliders en mi página donde recibo este error. No se que hacer por favor ayuda. Estoy aplicando este código en mi código. Pero no está funcionando. por favor ayuda
const navigationRef = useRef(null); const myRef = useRef(null); const currentIndex = useRef(0); useEffect(() => { const timer = setInterval(() => { currentIndex.current = currentIndex.current === FlatList1.length && FlatLis2.length && FltalIst3.length && ... so on .. FlatList7.length - 1 ? 0 : currentIndex.current + 1; myRef?.current?.scrollToIndex({ animated: true, index: currentIndex.current, }); }, 5000); return () => clearInterval(timer); }, []);