title: html file is not linking/executing properly with react-native
body: <p>i am new to  developing react-native application in which i need to link html file.it gives blank output on my android emulator, even not any error. I just want to know how to link html file with react native. Basic code samples are given below..</p>
  
  <p>i have gone through the this below link but it is not working in my scenario..
  <a href="https://stackoverflow.com/questions/42851296/react-native-load-local-html-file-into-webview">(React Native) Load local HTML file into WebView</a></p>
  
  <p>App.js </p>
  
  <pre><code>import React, { Component } from 'react';
  import {
    View,
    WebView
  } from 'react-native';
  
  const DataHTML = require('./data.html');
  
  export default class App extends Component&lt;Props&gt; {
    render() {
      return (
       &lt;View&gt;
          &lt;WebView
              source={DataHTML} 
              style={{flex: 1}}
              /&gt;                
        &lt;/View&gt;
      );
    }
  }
  </code></pre>
  
  <p>data.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Hello&lt;/h1&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>