ascoders / react-native-image-viewer

🚀 tiny & fast lib for react native image viewer pan and zoom
MIT License
2.44k stars 577 forks source link

Allow specifying whether to use useNativeDriver #394

Closed pxpeterxu closed 4 years ago

pxpeterxu commented 4 years ago

Motivation/原因

On Android, using useNativeDriver speeds up animations a lot. 用android时,useNativeDriver 会提高动画的效率。

Change

Allow passing in a prop (useNativeDriver) which determines whether animations are animated with useNativeDriver. Defaults to false.

加一个 useNativeDriver 的 prop,让用户选择是否使用原生动画驱动。默认 false

ArtemKolichenkov commented 4 years ago

Looks great! Thanks!