![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
react-native-image-zoom-viewer
Advanced tools
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);
Depend on react-native-image-pan-zoom
: https://github.com/ascoders/react-native-image-zoom
FAQs
react native image viewer,大图浏览
The npm package react-native-image-zoom-viewer receives a total of 35,569 weekly downloads. As such, react-native-image-zoom-viewer popularity was classified as 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.