Skip to content
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

Closed
FelipeBohnertPaetzold opened this issue Nov 17, 2017 · 12 comments
Closed

Input type="file" doesn't work in WebView Android #16869

FelipeBohnertPaetzold opened this issue Nov 17, 2017 · 12 comments
Labels
Component: WebView Related to the WebView component. Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@FelipeBohnertPaetzold
Copy link

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Steps to Reproduce

  1. Add a component with WebView pointing to a page that contains a file type input.

  2. 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

@juangl
Copy link

juangl commented Nov 17, 2017

@FelipeBohnertPaetzold
Copy link
Author

I am not able to inject native code, I am using Expo: '(

@dahjelle
Copy link

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.

@FelipeBohnertPaetzold
Copy link
Author

Unfortunately the Expo does not allow me to build native modules. But for now I will give another solution.

@waldandrade
Copy link

@FelipeBohnertPaetzold How you fix that with expo?

@FelipeBohnertPaetzold
Copy link
Author

@waldandrade I did not get it. I just created a screen for this in my App

@hramos hramos added Component: WebView Related to the WebView component. Android labels Mar 8, 2018
@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label Mar 18, 2018
@react-native-bot react-native-bot added Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. labels Mar 18, 2018
@andreipfeiffer
Copy link

You have to eject from expo if you want to build native modules:
https://facebook.github.io/react-native/docs/getting-started.html#caveats

@stale
Copy link

stale bot commented Jul 9, 2018

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.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jul 9, 2018
@sanshao
Copy link

sanshao commented Jul 16, 2018

the same problem
anybody have an solution?

@stale stale bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Jul 16, 2018
@andreipfeiffer
Copy link

@sanshao you can checkout my custom WebView component or dahjelle's. If you are using Expo, you have to eject.

@jamonholmgren
Copy link
Collaborator

This issue has been migrated to react-native-webview/react-native-webview#11 and can be closed.

@Titozzz
Copy link
Collaborator

Titozzz commented Sep 26, 2018

This is currently being fixed on the community repo. Closing here

@Titozzz Titozzz closed this as completed Sep 26, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Sep 26, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: WebView Related to the WebView component. Platform: Android Android applications. Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests