-
-
Save reime005/605da4f5b43b78b877103bed3a660c0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { withRepeat, withSequence, withTiming } from 'react-native-reanimated'; | |
React.useEffect(() => { | |
currTime.value = withRepeat( | |
withSequence( | |
withTiming(-1, { duration: 800 }), | |
withTiming(1, { duration: 800 }), | |
), | |
-1, | |
); | |
}, []); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment