
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
react-native-doc-viewer
Advanced tools
Document Viewer for IOS -Supports pdf, png, jpg, xls, ppt, doc, docx, pptx, xlx
$ 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-react-native-doc-viewer'
project(':react-native-react-native-doc-viewer').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-react-native-doc-viewer/android')
android/app/build.gradle:
compile project(':react-native-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:"smaple"
}], (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)}></Button>



Android, Windows Support
saveAndPreviewBase64File Function
FAQs
React Native Native Module Bridge Quicklock Document Viewer for IOS + Android supports pdf, png, jpg, xls, ppt, doc, docx, pptx, xlx + Video Player mp4 supported
The npm package react-native-doc-viewer receives a total of 722 weekly downloads. As such, react-native-doc-viewer popularity was classified as not popular.
We found that react-native-doc-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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.