百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

rn-pdf-reader-js

> 前端框架
开源

JavaScript 中的 PDF 阅读器仅适用于世博会 - 支持 Android 和 iOS

397 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

JavaScript 中的 PDF 阅读器仅适用于世博会 - 支持 Android 和 iOS

PDF Reader

Android support

Read a PDF just with JS (no native libs needed)

Requirements

  • Install react-native-webview on your own!
  • Install expo-file-system on your own!
  • Install expo-constants on your own!
  • Use it into Expo app (from expo client, Standalone app or ExpoKit app).
  • Only React-Native 0.59-0.60+ support, Expo SDK 33-36+

PRs are welcome...

Example

typescript
import * as React from 'react'
import { View } from 'react-native'
import PDFReader from 'rn-pdf-reader-js'

export default class App extends React.Component {
  render() {
    return (
      
    )
  }
}

See more detailed example into App.tsx file.

Props

…

Possibilities

Render type Platform Source prop
Custom PDF reader Android uri or base64
Direct from WebView iOS uri or base64
Google PDF Reader Android, iOS uri

What rn-pdf-reader-js use?

  • react-pdf (pdf.js)
  • WebView
  • Base64

FAQ

  • Why the component doesn't render PDF?

Hire an expert!

Looking for a ReactNative freelance expert with more than 12 years experience? Contact me from my website!

Issues· 29 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptexpopdf-readerpdf-viewerpdfjs

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架