
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
react-native-image-zoom-viewer
Advanced tools
Depend on react-native-image-pan-zoom
: https://github.com/ascoders/react-native-image-zoom
Swiper image smoothly
Zoom while sliding
Intelligent zoom
npm i react-native-image-zoom-viewer --save
$ npm i react-native -g
$ react-native init myproject
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Modal
} from 'react-native';
import ImageViewer from 'react-native-image-zoom-viewer';
const images = [{
url: 'http://scimg.jb51.net/allimg/160815/103-160Q509544OC.jpg'
}, {
url: 'http://img.sc115.com/uploads1/sc/jpgs/1508/apic22412_sc115.com.jpg'
}, {
url: 'http://v1.qzone.cc/avatar/201407/07/00/24/53b9782c444ca987.jpg!200x200.jpg'
}]
class ImageViewer extends React.Component {
render: function() {
return (
<Modal visible={true} transparent={true}>
<ImageViewer imageUrls={images}/>
</Modal>
)
}
}
AppRegistry.registerComponent('myproject', () => ImageViewer);
FAQs
react native image viewer,大图浏览
The npm package react-native-image-zoom-viewer receives a total of 0 weekly downloads. As such, react-native-image-zoom-viewer popularity was classified as not popular.
We found that react-native-image-zoom-viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.