question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WKWebview <input type=file> select a photo,webview will be reload when you back

See original GitHub issue

Environment

Run react-native info in your terminal and paste its contents here.

Description

Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
AugustoGucommented, Jan 7, 2019

Same problem here.

In iOS, in the input file always when selecting a photo or take a picture, the webview does reload, being impossible to complete the action. Only when “useWebKit” = true

For now I’m using “useWebKit” = false, so it works as expected.

0reactions
Gemerzcommented, Feb 14, 2019

@FrK492 hey, man, Lately, I have been using react-native-community/react-native-webview independently which can avoid that situation, I think community and react native team trying to remove webview from the React Native core as independent module, so now those modules are not sync up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WKWebView behavior. Reloading after Image picker returns
I am getting a weird behavior of a WKWebview. Resuming the problem is that after the web content ask for a image, the...
Read more >
UIWebView file chooser issue in iO… | Apple Developer Forums
I 'm using Xcode 7.0. One of the server-loaded pages presented in the UIWebView is a file chooser, similar to: <form action="post.jsp" id="photo" ......
Read more >
The Ultimate Guide to WKWebView - Hacking with Swift
WKWebView can load any HTML stored in your app bundle using its loadFileURL() method. You should provide this with a URL to some...
Read more >
WebView - Android Developers
WebView objects allow you to display web content as part of your activity layout, ... its overall window so that there will be...
Read more >
JavaScript Manipulation on iOS Using WebKit | Capital One
As iOS developers, there are times we want to include web content inside our iOS apps. We may want to load content from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found