$ react-native link react-native-image-to-pdf Manual installation iOS In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] Go to node_modules ➜ react-native-image-to-pdf and add RNImageToPdf.xcodeproj In XCode, in the project navigator, se...
文件保存在/storage/emulated/0/Android/data/com..中,而不是下载文件夹react-native-image-to-pdf...
import React, { Component } from 'react'; import { Text, TouchableHighlight, View, Button, } from 'react-native'; import RNHTMLtoPDF from 'react-native-html-to-pdf'; class Example extends Component { async createPDF() { let options = { html: `Hello world!Img[ ...
$ yarn add react-native-image-to-pdf Mostly automatic installation $ react-native link react-native-image-to-pdf Manual installation iOS In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name] Go to node_modules ➜ react-native-image-to-pdf and ...