🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
r

react-native-open-pdf

Open pdf files using native app for Android

0.0.2
latest
69

Supply Chain Security

100

Vulnerability

74

Quality

76

Maintenance

100

License

Version published
Weekly downloads
105
59.09%
Maintainers
1
Weekly downloads
 
Created
Issues
0

react-native-open-pdf

Open a pdf file or url that resolves to one using android native app ONLY FOR ANDROID

For a similar behaviour for ios, I recommend react-native-inappbrowser-reborn

Getting started

$ npm install react-native-open-pdf --save

Usage

Open a local file

import OpenPdf from 'react-native-open-pdf';

const path = 'http://www.math.hawaii.edu/~pavel/gcd.pdf';
OpenPdf.open(path);

API

open(path: string, options?: Object): Promise<void>

ParameterTypeDescription
pathstringThe absolute path where the file is stored or an url pointing to a pdf file
options (optional)ObjectSome options to customize the behaviour. See below.

Options

ParameterTypeDescription
chooserTitle (optional)stringDefault to "Open with"

FAQs

Package last updated on 21 Jan 2021

Did you know?

Socket

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.

Install

Related posts