christopherdro / react-native-print

Print documents using React Native
MIT License
335 stars 142 forks source link

PDF print attempt causes crash on iOS17+ #212

Open andy-zy opened 11 months ago

andy-zy commented 11 months ago

Hi

The app crashes on attempt to print a remote PDF document which contains more then 1 page. Exception:

NSInvalidArgumentException: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]

Reproduces 100% cases on iOS17, react-native-print@0.11.0 (react-native@0.71.12) Usage code example:

import RNPrint from 'react-native-print';

await RNPrint.print({
  filePath: 'https://exmaple.com/some-document.pdf',
});
GregoryNative commented 11 months ago

+1 same bug

fianso98 commented 8 months ago

+1 same bug