react-native-亲测可用插件

1. 将html转化为pdf

地址:https://github.com/christopherdro/react-native-html-to-pdf

2.查看pdf格式的文件

地址:https://github.com/wonday/react-native-pdf

3.打印机功能

地址:https://github.com/christopherdro/react-native-print

注:react-native如果说想实现打印功能的话,可直接用打印机功能插件即可,里面会自带modal弹出框

如果打印的html里面带有图片,需要将html转化为pdf格式(第一个插件)

下面是弹出后的样子

 

posted @ 2020-11-27 16:20  走开,不要让我犯错误  阅读(281)  评论(0编辑  收藏  举报