Important: This PR assumes that react-native-image-pan-zoom will be released with version 3.0.0 (a major version bump), but please edit it to whatever it ends up getting released as.
I've updated this merge request to require the latest release of react-native-image-pan-zoom, since that's the only version that supports useNativeDriver right now
Follow-up to https://github.com/ascoders/react-native-image-zoom/pull/128 and https://github.com/ascoders/react-native-image-viewer/pull/394
Important: This PR assumes that
react-native-image-pan-zoom
will be released with version 3.0.0 (a major version bump), but please edit it to whatever it ends up getting released as.警告:这个 PR 假设新的 react-native-image-pan-zoom 的版号是 3.0.0。如果不是的话,请改!
Now that we can specify
useNativeDriver
inreact-native-image-pan-zoom
, we need to pass down the prop to<ImageZoom />
too.因为我们加了 useNativeDriver prop,我们也要把它提供给 ImageZoom -- 他也有分别的动画。