react-native-pdf-lib
react-native-pdf-lib copied to clipboard
Cause: java.lang.UnsupportedOperationException on Android
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()
);
}
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.