MCPcopy Index your code
hub / github.com/Tinysymphony/react-native-zoom-image

github.com/Tinysymphony/react-native-zoom-image @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
29 symbols 40 edges 8 files 1 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

react-native-zoom-image

ZoomImage component for React Native Application (ios / android)

Only works with https network images [With the limitation of the current react-native, we can't get original size of required images. This component just zooms them with given size (provided by imgStyle prop)]

If you need to support http network images, modify info.plist please :)

Examples

Usage

install from npm

npm install --save react-native-zoom-image

import in project

import ZoomImage from 'react-native-zoom-image';
import {Easing} from 'react-native'; // import Easing if you want to customize easing function
let styles = {
  img: {} // custom styles of original image component
};
// in render function
<ZoomImage
  source={{uri: 'https://ooo.0o0.ooo/2017/03/31/58de0e9b287f6.jpg'}}
  imgStyle={{width: 250, height: 230}}
  style={styles.img}
  duration={200}
  enableScaling={false}
  easingFunc={Easing.ease}
/>

Properties

Instance methods

LICENSE MIT

Core symbols most depended-on inside this repo

constructor
called by 0
index.ios.js
constructor
called by 0
ZoomImage.js
getMaxSizeByRatio
called by 0
ZoomImage.js
componentDidMount
called by 0
ZoomImage.js
openModal
called by 0
ZoomImage.js
closeModal
called by 0
ZoomImage.js
modalRefBind
called by 0
ZoomImage.js
_onStartShouldSetPanResponder
called by 0
ZoomImage.js

Shape

Function 20
Method 5
Class 4

Languages

TypeScript76%
Java24%

Modules by API surface

ZoomImage.js19 symbols
android/app/src/main/java/com/zimage/MainApplication.java5 symbols
index.ios.js2 symbols
android/app/src/main/java/com/zimage/MainActivity.java2 symbols
Animation.js1 symbols

For agents

$ claude mcp add react-native-zoom-image \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page