{"action":"created","issue":{"url":"https://api.github.com/repos/archriss/react-native-display-html/issues/6","repository_url":"https://api.github.com/repos/archriss/react-native-display-html","labels_url":"https://api.github.com/repos/archriss/react-native-display-html/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/archriss/react-native-display-html/issues/6/comments","events_url":"https://api.github.com/repos/archriss/react-native-display-html/issues/6/events","html_url":"https://github.com/archriss/react-native-display-html/issues/6","id":264362220,"number":6,"title":"onMessage not called","user":{"login":"vvusts","id":25580183,"avatar_url":"https://avatars0.githubusercontent.com/u/25580183?v=4","gravatar_id":"","url":"https://api.github.com/users/vvusts","html_url":"https://github.com/vvusts","followers_url":"https://api.github.com/users/vvusts/followers","following_url":"https://api.github.com/users/vvusts/following{/other_user}","gists_url":"https://api.github.com/users/vvusts/gists{/gist_id}","starred_url":"https://api.github.com/users/vvusts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvusts/subscriptions","organizations_url":"https://api.github.com/users/vvusts/orgs","repos_url":"https://api.github.com/users/vvusts/repos","events_url":"https://api.github.com/users/vvusts/events{/privacy}","received_events_url":"https://api.github.com/users/vvusts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-10T20:18:26Z","updated_at":"2017-10-11T09:25:18Z","closed_at":null,"author_association":"NONE","body":"This is my setup:\r\n```\r\n<DisplayHTML\r\n               onMessage={(event)=> console.log('test...') }\r\n                allowUniversalAccessFromFileURLs={true}\r\n                allowFileAccess={true}\r\n                ref={html => (this.htmlView = html)}\r\n                key={this.props.key}\r\n                htmlString={this.props.description}\r\n                ...\r\n```\r\nI also installed react-native-webview-bridge.\r\nBut onMessage is never called.\r\nWhat can be reason for that?\r\n\r\nVersion 1.2.3"},"comment":{"url":"https://api.github.com/repos/archriss/react-native-display-html/issues/comments/335750752","html_url":"https://github.com/archriss/react-native-display-html/issues/6#issuecomment-335750752","issue_url":"https://api.github.com/repos/archriss/react-native-display-html/issues/6","id":335750752,"user":{"login":"Exilz","id":8697118,"avatar_url":"https://avatars3.githubusercontent.com/u/8697118?v=4","gravatar_id":"","url":"https://api.github.com/users/Exilz","html_url":"https://github.com/Exilz","followers_url":"https://api.github.com/users/Exilz/followers","following_url":"https://api.github.com/users/Exilz/following{/other_user}","gists_url":"https://api.github.com/users/Exilz/gists{/gist_id}","starred_url":"https://api.github.com/users/Exilz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exilz/subscriptions","organizations_url":"https://api.github.com/users/Exilz/orgs","repos_url":"https://api.github.com/users/Exilz/repos","events_url":"https://api.github.com/users/Exilz/events{/privacy}","received_events_url":"https://api.github.com/users/Exilz/received_events","type":"User","site_admin":false},"created_at":"2017-10-11T09:25:18Z","updated_at":"2017-10-11T09:25:18Z","author_association":"COLLABORATOR","body":"Well, the script injected in your webview sets an interval to check for height changes. So if your content updates, it will scale appropriately within 1 second.\r\n\r\nHowever, this plugin, in its current state, doesn't give you access to the `height` value, it's all handled within the plugin.\r\n\r\nIf I understand correctly, you need to access this height to apply some kind of specific styling to the parent of your webview ? Are you sure you really need to do that ?"}}
{"actor":{"display_login":"Exilz"}}