I am developing a react-native application and in it i am using the WebView component to render web pages inside the app. But i cannot download the files from the website in the android mobile app.
<View style={styles.container}>
<WebView
source={{ uri: 'https://********** }}
ref={'WEBVIEW_REF'}
startInLoadingState={true}
scalesPageToFit={true}
onNavigationStateChange={this.onNavigationStateChange.bind(this)}
javaScriptEnabled={true}
/>
</View>
I found there are issues reported in the GitHub react-native repository and still they are open. But is there any solution for this ?
ReactNative's WebView on Android does not support file input.
You can use this npm Module:
https://www.npmjs.com/package/react-native-webview-file-upload-android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With