react-native-action-button icon indicating copy to clipboard operation
react-native-action-button copied to clipboard

Set useNativeDriver to false explicitly in animation and reset

Open blindibrasil opened this issue 4 years ago • 2 comments

#339 - Solution: I believe that the proposal submitted earlier does not fully solve the problem presented in version 0.62 of the RN. Because it is necessary to insert useNativeDriver in the function that resets the action. https://reactnative.dev/blog/2017/02/14/using-native-driver-for-animated#how-do-i-use-this-in-my-app

blindibrasil avatar Apr 20 '20 22:04 blindibrasil

If you wanted to, I imagine you could even add an optional prop for ActionButton of useNativeDriver, which would default to false. And then use that value in the two spots you changed, rather than a hard-coded false. Idk if there are cases where people would want it to be true for this component, but just a thought.

sam1463 avatar May 17 '20 18:05 sam1463

@mastermoo or @sibelius Could you verify and merge the correction of this error?

blindibrasil avatar Jul 07 '20 23:07 blindibrasil