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.
useNativeDriver: true
should 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
Math.sin
driven
These issues are significantly improved in the updated code... blog material?