Skip to main content

Installation

📋 Requirements​

DependencyVersion
react-native-reanimated>= 2.3.0
react-native-gesture-handler>= 2.0.0

The bounce at the edge after a fling needs Reanimated 3.0 or newer. On Reanimated 2 the content stops at the edge. The library is developed and tested on Reanimated 4.

📦 Installation​

Install the library using either Yarn:

yarn add react-native-zoom-reanimated

or npm:

npm install --save react-native-zoom-reanimated

Make sure you have react-native-reanimated and react-native-gesture-handler installed and configured.

Basic Usage​

import Zoom from 'react-native-zoom-reanimated'

<Zoom>
<Image
source={{ uri: imageUri }}
resizeMode="contain"
style={{ width: deviceWidth, height: imageHeight * deviceWidth / imageWidth }}
/>
</Zoom>

Continue with Usage.