Created
October 5, 2020 19:28
-
-
Save tpjnorton/bf1846ac7f2929b9222f911f0659bfbd 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
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