UNPKG

react-native-pdf-jsi

Version:

🚀 Ultra-fast React Native PDF viewer with JSI (JavaScript Interface) integration for maximum performance. Features lazy loading, smart caching, progressive loading, and zero-bridge overhead operations. Perfect for large PDF files with 30-day persistent c

27 lines (20 loc) • 642 B
/** * Copyright (c) 2017-present, Wonday (@wonday.org) * All rights reserved. * * This source code is licensed under the MIT-style license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const PdfManagerNative = require('react-native').NativeModules.PdfManager; export default class PdfManager { static loadFile(path, password) { if (typeof path !== 'string') { throw new TypeError('path must be a valid string.'); } if (password === undefined) { password = ""; } return PdfManagerNative.loadFile(path, password); } }