
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-doc-viewer2
Advanced tools
React Native Native Module Bridge Quicklock Document Viewer for IOS -Supports pdf, png, jpg, xls, ppt, doc, docx, pptx, xlx
A React Native bridge module: Document Viewer for files (pdf, png, jpg, xls, doc, ppt, xlsx, docx, pptx etc.)

Changelog:
1.4.0
- Android Doc Viewer Implementation
$ npm install react-native-doc-viewer --save
$ react-native link react-native-doc-viewer
In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
Go to node_modules ➜ react-native-doc-viewer and add RNReactNativeDocViewer.xcodeproj
In XCode, in the project navigator, select your project. Add libRNReactNativeDocViewer.a to your project's Build Phases ➜ Link Binary With Libraries
Linked Frameworks and Libraries must have this 2 Libraries (AssetsLibrary.framework & QuickLock.framework). When not you have to add them.


When you Show http Links don't forget to set APP Transport Security Settings -> Allow Arbitrary Loads to YES

Cmd+R)<android/app/src/main/java/[...]/MainActivity.javaimport com.reactlibrary.RNReactNativeDocViewerPackage; to the imports at the top of the filenew RNReactNativeDocViewerPackage() to the list returned by the getPackages() methodandroid/settings.gradle:
include ':react-native-doc-viewer'
project(':react-native-doc-viewer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-doc-viewer/android')
android/app/build.gradle:
compile project(':react-native-doc-viewer')
RNReactNativeDocViewer.sln in node_modules/react-native-react-native-doc-viewer/windows/RNReactNativeDocViewer.sln folder to their solution, reference from their app.MainPage.cs appusing Com.Reactlibrary.RNReactNativeDocViewer; to the usings at the top of the filenew RNReactNativeDocViewerPackage() to the List<IReactPackage> returned by the Packages methodimport OpenFile from 'react-native-doc-viewer';
//Handle Function Internet
handlePress = () => {
OpenFile.openDoc([{
url:"http://www.snee.com/xml/xslt/sample.doc",
fileName:"sample"
}], (error, url) => {
if (error) {
console.error(error);
} else {
console.log(url)
}
})
}
//Handle Function Local File
handlePress = () => {
OpenFile.openDoc([{
url:"{Path/to/the/document}",
fileName:"sample"
}], (error, url) => {
if (error) {
console.error(error);
} else {
console.log(url)
}
})
}
<Button
onPress={this.handlePress.bind(this)}
title="Press Me"
accessibilityLabel="Open the Doc"
/>



Copyright (c) 2017-present, Philipp Hecht philipp.hecht@icloud.com
FAQs
React Native Native Module Bridge Quicklock Document Viewer for IOS -Supports pdf, png, jpg, xls, ppt, doc, docx, pptx, xlx
We found that react-native-doc-viewer2 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.