File input is not working in webview in react-native
Clash Royale CLAN TAG#URR8PPP
File input is not working in webview in react-native
I have a web view component as
<View style=height: 350>
<WebView
source=./index.html scalesPageToFit
/>
</View>
and I am using the following code to take a file form the user
<div id="wrapper">
<input type='file'/>
</div>
but i cannot select any file in android. now pop up appears as in the browsers. I set all the external storage read and write permissions too but no help.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
This is not Right way to upload the file. try this npm package for file upload in react-native npmjs.com/package/react-native-fileupload
– anil sidhu
Aug 10 at 5:24