Skip to content

Instantly share code, notes, and snippets.

@reime005
Created December 10, 2020 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/605da4f5b43b78b877103bed3a660c0d to your computer and use it in GitHub Desktop.
Save reime005/605da4f5b43b78b877103bed3a660c0d to your computer and use it in GitHub Desktop.
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