alinz / react-native-webview-bridge

React Native Webview with Javascript Bridge
MIT License
1.37k stars 493 forks source link

Need support for uploading images on android devices #193

Open vjtc0n opened 7 years ago

vjtc0n commented 7 years ago

Hello, When I try to upload images through webview, it was perfect on ios, but not on android. Here is my code from html:

<input id="file" type="file" accept="image/*" style="display: none;">

On android, it didn't open the gallery to pick up images, photos... Also, I turned on some permissions according to Android Studio doc:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.MANAGE_DOCUMENTS" /> <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-feature android:name="android.hardware.camera" android:required="true"/> <uses-feature android:name="android.hardware.camera.autofocus" android:required="true"/> My simulator device is google nexus, API 23. Am I wrong at somewhere ?

mescalchuan commented 6 years ago

Need help too!

imsantoshyadav commented 5 years ago

please let me know if is there any solution for this issue now