-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upload files don't work properly in Android #1697
Comments
I only could log an error while I was debugging this problem, I think could be helpful
|
Error while getting photo from camera and press ✔️ :
|
Error while selecting a photo from gallery:
|
Solved: This was a problem with other library (dyscan) that was overriding the onActivityResult with the same requestCode than react-native-webview library. |
@daaanigm Hi, how can you resolve it? |
I needed to modify the library and return a different code in the onActivityResult method. I don't remember well because I worked on this some years ago but I remember that was the solution |
Bug description:
Upload files don't work properly in Android, the app is crashing while I am trying to select a file, shot a photo or video, or only opening the selector modal and closing it.
To Reproduce:
Use this example:
react-native-webview/example/examples/Uploads.tsx
Line 6 in 4093682
Expected behavior:
Should select a file from camera or file manager.
Screenshots/Videos:
![opening_and_close_modal](https://user-images.githubusercontent.com/14923858/95891781-d75deb00-0d85-11eb-8e10-3c0ee6404873.gif)
Environment:
The text was updated successfully, but these errors were encountered: