-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
Input type="file" doesn't work in WebView Android #16869
Comments
Consider implementing it in a custom WebView. See: |
I am not able to inject native code, I am using Expo: '( |
There's an existing merge request for this, but it's been closed in preference for an external module. That said, making your own module still requires native code but isn't as difficult as I'd feared. |
Unfortunately the Expo does not allow me to build native modules. But for now I will give another solution. |
@FelipeBohnertPaetzold How you fix that with expo? |
@waldandrade I did not get it. I just created a screen for this in my App |
You have to |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
the same problem |
@sanshao you can checkout my custom WebView component or dahjelle's. If you are using Expo, you have to |
This issue has been migrated to react-native-webview/react-native-webview#11 and can be closed. |
This is currently being fixed on the community repo. Closing here |
Is this a bug report?
yes
Have you read the Contributing Guidelines?
yes
Environment
Steps to Reproduce
Add a component with WebView pointing to a page that contains a file type input.
Access the component of an Android device.
Expected Behavior
The photo gallery of Android is expected to open to select the desired file.
Actual Behavior
Nothing happens, as if it had clicked out of the input.
Reproducible Demo
https://snack.expo.io/@felipepaetzold/webview-input-file-error-on-android
The text was updated successfully, but these errors were encountered: