cssta icon indicating copy to clipboard operation
cssta copied to clipboard

Enable Animation useNativeDriver where possible

Open jacobp100 opened this issue 6 years ago • 5 comments

I think we can enable it on

  • opacity
  • transforms

jacobp100 avatar May 09 '18 20:05 jacobp100

First of all, thanks for this beautiful library.

What is the situation with this issue?

i-yusuf avatar Apr 17 '21 19:04 i-yusuf

I haven't done it. Are you now getting warnings about needing to explicitly set true/false?

jacobp100 avatar Apr 19 '21 09:04 jacobp100

I haven't done it. Are you now getting warnings about needing to explicitly set true/false?

Yes, yellow box appears with useNativeDriver warning.

i-yusuf avatar Apr 19 '21 15:04 i-yusuf

I can take a look when I have a bit more free time. Or I can take a look at PRs if anyone wants to take a stab at it.

jacobp100 avatar Apr 24 '21 08:04 jacobp100

Hello fix this ; useAnimation.ts and useTransition.ts files Animated.timing(animation, { useNativeDriver: true } );

roninhack avatar Oct 07 '21 07:10 roninhack