
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
react-native-photo-viewer
Advanced tools
React native photo viewer component, used for Android, iOS.
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 3 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.