Disable download in React native WebView
问题 I am using a React Native WebViw in my app. I want to disable download of files. Mostly just documents. I cant disable storage permissions as certain features in the app need this feature. 回答1: You can achieve this by injecting a javascript, with the help of controlsList="nodownload" property check below reference code for video file: <WebView style={{ height: this.props.videoPlayerHeight, width: this.props.videoPlayerWidth, backgroundColor: 'black', }} allowsFullscreenVideo={true}