lucasferreira / react-native-webview-android

Simple React Native Android module to use Android's WebView inside your app
355 stars 158 forks source link

work input[type=file] but can't select. #89

Closed rluisr closed 6 years ago

rluisr commented 6 years ago

according to the tile.

const React = require('react');
const WebViewAndroid = require('react-native-webview-android');
const { AppRegistry, Text, StyleSheet } = require('react-native');

const Component = React.Component;

const SITE_URL = 'https://uploader.xzy.pw';

export default class HelloWorldApp extends Component {
  render() {
    return (
      <WebViewAndroid
        ref="webViewAndroidSample"
        javaScriptEnabled={true}
        geolocationEnabled={false}
        builtInZoomControls={false}
        onNavigationStateChange={this.onNavigationStateChange}
        url={SITE_URL}
        style={styles.containerWebView}/>
    );
  }
}

const styles = {
  containerWebView: {
    flex: 1,
  }
};

// skip this line if using Create React Native App
AppRegistry.registerComponent('EasyUploader', () => HelloWorldApp);

image

lucasferreira commented 6 years ago

Did you try without the accept attribute in input[type=file] ?

rluisr commented 6 years ago

@lucasferreira Thanks! solved with your solution.