Just messing around with React Native animation. Hopefully some of the lessons shared in here will help someone else looking to mess with animation as well.
After watching Jason Brown's React Native animation videos (buy them here), I've fixed the wave animation to be much cleaner and simpler (but in a separate repo). Kudos to Jason for making such a great educational series.
Things that are bad about the sine wave version here:
useNativeDriver: trueshould work for the sine wave, but it doesn't - issue #3. This is due to accessing a private variable that doesn't get updated in native. This is fixed in the alternate code base.
- Sine doesn't keep shape over long periods of time due to not being actual
These issues are significantly improved in the updated code... blog material?