Description:
A Twitter-like image viewer component for React Native. Supports both iOS and Android.
Installation:
# Yarn $ yarn add react-native-zoom-image # NPM $ npm install react-native-zoom-image --save
Usage:
import React, {Component} from 'react';
import {
StyleSheet,
AppRegistry,
View,
Text,
Easing,
ScrollView,
TouchableHighlight
} from 'react-native';
import ZoomImage from 'react-native-zoom-image';
<ZoomImage
source={{uri: '1.jpg'}}
imgStyle={{width: 250, height: 230}}
style={styles.img}
duration={200}
enableScaling={false}
easingFunc={Easing.ease}
/>Default props.
disabled: false, startCapture: false, moveCapture: false, rebounceDuration: 800, closeDuration: 140, showDuration: 100, easingFunc: Easing.ease, enableScaling: false





