import * as React from 'react';
import {
  StyleSheet,
  View,
  WebView,
  Modal,
  ActivityIndicator,
  Platform,
} from 'react-native';

export default class WebIndex extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      visible: true,
      error: false,
    };
  }

  onLoadEnd = () => {
    this.setState({
      visible: false,
    });
  }

  render() {
    return (
      <View style={styles.container}>
        <WebView
          style={styles.webView}
          ref="webview"
          onLoadEnd={this.onLoadEnd}
          automaticallyAdjustContentInsets={false}
          source={{ uri: 'http://mobile.ant.design/kitchen-sink/' }}
        />
        <Modal
          animationType={'none'}
          transparent
          onRequestClose={this.onLoadEnd}
          visible={this.state.visible}
        >
          <View style={styles.loading}>
            <ActivityIndicator
              animating
              size="large"
            />
          </View>
        </Modal>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    ...Platform.select({
      ios: {
        marginTop: 64,
      },
      android: {
        marginTop: 44,
      },
    }),
  },
  webView: {
    flex: 1,
  },
  loading: {
    marginTop: 64,
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
});

@@ -642,42 +642,75 @@
 p://
-mobile.ant.design/kitchen-sink/' %7D
+30.20.76.77:8001/kitchen-sink/' %7D%7D%0A          scalesPageToFit=%7Bfalse
 %7D%0A  

fix android rn-webview scale, issue 211