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

Cause: java.lang.UnsupportedOperationException on Android

Open softmastx opened this issue 6 years ago • 1 comments

Install manually on Android

"react-native": "0.55.0", "react-native-navigation": "1.1.431", "react-native-pdf-lib": "0.2.0",

MainApplication.java

import com.hopding.pdflib.PDFLibPackage;

 protected List<ReactPackage> getPackages() {
    
    return Arrays.<ReactPackage>asList(
          
            new FastImageViewPackage(),
            new VectorIconsPackage(),
            new PDFLibPackage()
    );
  }

softmastx avatar Nov 28 '18 03:11 softmastx

Yes, manual installation on Android doesn't currently work. And on the latest versions of React Native the automatic linking requires tweaking as well (see https://github.com/Hopding/react-native-pdf-lib/issues/27). I'd like to get this fixed. Not sure when I'll have a chance to work on this though.

Hopding avatar Jan 08 '19 15:01 Hopding