AndroidPdfViewer
AndroidPdfViewer copied to clipboard
Move handler creation to onAttachedToWindow() instead of the constructor
Detaching and reattaching a PDFView causes an NPE. This is due to creating a handler in the constructor, but setting it to null in onDetachedFromWindow(). The fix is to create the handler on onAttachedToWindow() instead of the constructor.
This allows the view to be detached and re-attached without loss of functionality.
+1 https://github.com/barteksc/AndroidPdfViewer/issues/822
@barteksc could you merge this fix and create a new release please? It's a big blocker for people using your library in React Native: https://github.com/wonday/react-native-pdf 😿
Is this update added in V3.2.0-beta.1? I am getting crash for this issue.
Please add new feature for autoCropPageMargin on bitmap blank space