
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
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 6 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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.