官方链接:https://github.com/wonday/react-native-pdf
#安装
npm install rn-fetch-blob --save
npm install react-native-pdf --save
#链接依赖
react-native link rn-fetch-blob
react-native link react-native-pdf
import React from 'react';
import {
Dimensions, StyleSheet, View} from 'react-native';
import Pdf from 'react-native-pdf';
import SplashScreen from 'react-native-splash-screen'
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {
totalPage: 1,
currentPage: 1
}