import { View } from "react-native"; import { useState } from "react"; import { Motion } from "@legendapp/motion"; import { Palette, Style } from "../styles"; export default () => { const [animatedDotIndex, setAnimatedDotIndex] = useState(0); setTimeout(() => { setAnimatedDotIndex((animatedDotIndex + 1) % 3); }, 500); return ( {[1, 2, 3].map((item) => ( ))} ); };