Gathering detailed insights and metrics for rn-doc-preview
Gathering detailed insights and metrics for rn-doc-preview
Gathering detailed insights and metrics for rn-doc-preview
Gathering detailed insights and metrics for rn-doc-preview
ReactNative: Read Documents within application in iOS and use 3rd party library in-case of Android
npm install rn-doc-preview
Typescript
Module System
Node Version
NPM Version
Java (51.54%)
Objective-C (20.44%)
C# (16.34%)
JavaScript (8.78%)
Ruby (2.91%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
9 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Aug 16, 2022
Latest Version
0.0.2
Package Id
rn-doc-preview@0.0.2
Unpacked Size
60.81 kB
Size
15.88 kB
File Count
19
NPM Version
8.3.0
Node Version
17.3.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
ReactNative: Read Documents within application in iOS and use 3rd party library in-case of Android
$ yarn add react-native-doc-preview
1import { NativeModules } from 'react-native' 2let { MSDocPreview } = NativeModules 3 4 MSDocPreview.shareDoc( 5 [ 6 { 7 url: path, 8 fileName: item.get('name') 9 } 10 ], 11 (error, url) => { 12 if (error) { 13 let { Dialog } = imports('uikit') 14 15 Dialog.error({ 16 title: LocaleManager.getLocale('UIkit', 'android-error'), 17 description: LocaleManager.getLocale('UIkit', 'no-app-support'), 18 positiveText: Locale.continue, 19 onPositive: () => {} 20 }) 21 } else { 22 } 23 } 24) 25 26MSDocPreview.openDoc( 27 [ 28 { 29 url: path, 30 fileName: item.get('name') 31 } 32 ], 33 () => {} 34) 35 36or 37 38import {DocPreview} from 'react-native-doc-preview' 39 40<DocPrewview url={} fileName={}/>
API | Params | Description |
---|---|---|
openDoc | url, fileName | This api internally uses QLPreview to display the document within the app |
API | Params | Description |
---|---|---|
shareDoc | url, fileName | This api invokes an Intent to select an app from list of 3rd party apps to support Document Reading |
Prop | Type | Default | Note |
---|---|---|---|
url: mandatory | string | Path of the file to Read | |
fileName: mandatory | string | Name of the file Read. |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More