- SDK version : 35,
- Platform Android
i got i problem with the loading of a file, in this case an image, with extension ‘JPG’.
I’m trying to open it with the react-native-webview, but after i upgraded to expo sdk 35, it randomly crashes, returning me this error:
With ‘randomly’ i mean that sometimes the file opens correctly and other times it goes on crash, catching the PROPS ‘onError’ of the webview component.
The flow is :
- i click on the element, and i pass to the webview a props with the source of the file in the format ‘file:///’, it is a file downloaded on the local storage of the phone.
- the webview loads the file and shows it.
- in the first case it throw the onLoading error, on the second click it works, opening correctly the file and then it crashes again.
this is the code where i call the webview component :
I hope i have provided enough informations about my problem.
Thank u for the responses.