
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
react-native-photo-viewer
Advanced tools
React native photo viewer component for Android, iOS
npm install react-native-photo-viewer --save
Use rnpm to automatically complete the installation:
rnpm link react-native-photo-viewer
or link manually like so:
// file: android/settings.gradle
...
include ':react-native-photo-viewer'
project(':react-native-photo-viewer').projectDir = new File(settingsDir, '../node_modules/react-native-photo-viewer/android')
// file: android/app/build.gradle
...
dependencies {
...
compile project(':react-native-photo-viewer')
}
// file: android/app/src/main/java/com/<...>/MainApplication.java
...
import com.wog.photoviewer.PhotoViewerPackage;; // <-- add this import
public class MainApplication extends Application implements ReactApplication {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new PhotoViewerPackage() // <-- add this line
);
}
...
}
var PhotoViewerManager = require('react-native-photo-viewer');
/**
* The method will launch native module
* @param {String} url Video link
*/
PhotoViewerManager.showPhotoViewer(url);
var PhotoViewer = require('react-native-photo-viewer');
/**
* This component will be used as Control, embeded inside a Viewer
*/
<PhotoView
source={{uri: [URL]}}
minimumZoomScale={1} // min scale
maximumZoomScale={4} // max scale
.../>
FAQs
React native photo viewer component, used for Android, iOS.
The npm package react-native-photo-viewer receives a total of 1 weekly downloads. As such, react-native-photo-viewer popularity was classified as not popular.
We found that react-native-photo-viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.