Skip to content

Instantly share code, notes, and snippets.

@tpjnorton
Created October 5, 2020 19:28
Show Gist options
  • Save tpjnorton/bf1846ac7f2929b9222f911f0659bfbd to your computer and use it in GitHub Desktop.
Save tpjnorton/bf1846ac7f2929b9222f911f0659bfbd to your computer and use it in GitHub Desktop.
const animation = useSharedValue(0);
const animateCircle = (breathing) => {
if (!breathing) animation.value = 0;
else {
animation.value = withRepeat(
withTiming(1, {
duration: 5000,
reverse: true,
easing: Easing.inOut(Easing.ease),
})
);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment