What react-native version are you using?
--> 0.74.5
What react-native-pdf version are you using?
--> 6.7.5
What platform does your issue occur on? (android/ios/both)
Android
Describe your issue as precisely as possible :
1) Steps to reproduce the issue or to explain in which case you get the issue
updated the app from 0.71 to 0.74.5 and PDF is not working after that.
The app crashes as soon as the PDF finishes loading.
2) Interesting logs
java.lang.IllegalStateException: Tried to access a JS module before the React instance was fully set up. Calls to ReactContext#getJSModule should only happen once initialize() has been called on your native module.
at com.facebook.react.bridge.ReactContext.getJSModule(ReactContext.java:180)
at org.wonday.pdf.PdfView.loadComplete(PdfView.java:139)
at com.github.barteksc.pdfviewer.listener.Callbacks.callOnLoadComplete(Callbacks.java:83)
at com.github.barteksc.pdfviewer.PDFView.loadComplete(PDFView.java:831)
at com.github.barteksc.pdfviewer.DecodingAsyncTask.onPostExecute(DecodingAsyncTask.java:90)
at com.github.barteksc.pdfviewer.DecodingAsyncTask.onPostExecute(DecodingAsyncTask.java:27)
at android.os.AsyncTask.finish(AsyncTask.java:771)
at android.os.AsyncTask.-$$Nest$mfinish(Unknown Source:0)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:788)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Join a screenshot or video of the problem on the simulator or device?
What
react-native
version are you using? --> 0.74.5What
react-native-pdf
version are you using? --> 6.7.5What platform does your issue occur on? (android/ios/both) Android
Describe your issue as precisely as possible : 1) Steps to reproduce the issue or to explain in which case you get the issue
2) Interesting
logs
Join a screenshot or video of the problem on the simulator or device?
Show us the code you are using?