{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/21870","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/21870/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/21870/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/21870/events","html_url":"https://github.com/facebook/react-native/issues/21870","id":372207727,"node_id":"MDU6SXNzdWUzNzIyMDc3Mjc=","number":21870,"title":"Webview doesn't render html while import the file from local","user":{"login":"merbin2012","id":3687184,"node_id":"MDQ6VXNlcjM2ODcxODQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3687184?v=4","gravatar_id":"","url":"https://api.github.com/users/merbin2012","html_url":"https://github.com/merbin2012","followers_url":"https://api.github.com/users/merbin2012/followers","following_url":"https://api.github.com/users/merbin2012/following{/other_user}","gists_url":"https://api.github.com/users/merbin2012/gists{/gist_id}","starred_url":"https://api.github.com/users/merbin2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merbin2012/subscriptions","organizations_url":"https://api.github.com/users/merbin2012/orgs","repos_url":"https://api.github.com/users/merbin2012/repos","events_url":"https://api.github.com/users/merbin2012/events{/privacy}","received_events_url":"https://api.github.com/users/merbin2012/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-20T12:45:17Z","updated_at":"2018-10-20T12:45:17Z","closed_at":null,"author_association":"NONE","body":"## Description\r\nWhen I directly enter the html string or online line inside the <WebView> it perfectly reder the html. Working code is below\r\n\r\n```\r\n<WebView \r\n    originWhitelist={['*']}\r\n    source={{\r\n      html: `\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n  <title>Cool Effects with Marquees</title>\r\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\">\r\n</head>\r\n<body>\r\n<h1>This is Test</h1>\r\n</body>\r\n</html>` }}/>\r\n```\r\nBut if load the .html file from local path, it is render as **plain text**.\r\n```\r\n<WebView\r\n originWhitelist={['*']}\r\n source={require('./../../disc/html/1.html')}\r\n startInLoadingState={true}\r\n />\r\n```"}}
{"actor":{"display_login":"merbin2012"}}