
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
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.java
import 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 1,191 weekly downloads. As such, react-native-doc-viewer popularity was classified as 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.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
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.