react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

apk size is bigger than before

Open webstermobile opened this issue 2 years ago • 3 comments

at the beginning , I use the 'rn-pdf-reader-js' library, the apk size is 50M, now I use react-native-pdf to view pdf, the apk size is 64M, why is so big

webstermobile avatar May 26 '22 08:05 webstermobile

is there any one konw this

webstermobile avatar May 31 '22 02:05 webstermobile

I can't help here, but I'd guess the js library is smaller but slower.

But @wonday I would also like to know the size impacts of the module to a RN app. Could we somehow put that into the README?

pke avatar May 31 '22 09:05 pke

On Android, this library bundles its own pdfium binaries. If reduced size is a priority, you could try react-native-pdf-light (disclosure: I am the library's author). react-native-pdf-light uses pdf renderer APIs from Android OS; cuts a lot of the install size, but means fewer features, and some unfixable render bugs on older devices.

alpha0010 avatar Jul 10 '22 01:07 alpha0010