{"action":"created","issue":{"url":"https://api.github.com/repos/alinz/react-native-webview-bridge/issues/93","repository_url":"https://api.github.com/repos/alinz/react-native-webview-bridge","labels_url":"https://api.github.com/repos/alinz/react-native-webview-bridge/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/alinz/react-native-webview-bridge/issues/93/comments","events_url":"https://api.github.com/repos/alinz/react-native-webview-bridge/issues/93/events","html_url":"https://github.com/alinz/react-native-webview-bridge/issues/93","id":156494050,"number":93,"title":"[Android] onLoad function is triggered multiple times before the webview has finished loading","user":{"login":"ollieayre-oc","id":15922362,"avatar_url":"https://avatars.githubusercontent.com/u/15922362?v=3","gravatar_id":"","url":"https://api.github.com/users/ollieayre-oc","html_url":"https://github.com/ollieayre-oc","followers_url":"https://api.github.com/users/ollieayre-oc/followers","following_url":"https://api.github.com/users/ollieayre-oc/following{/other_user}","gists_url":"https://api.github.com/users/ollieayre-oc/gists{/gist_id}","starred_url":"https://api.github.com/users/ollieayre-oc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollieayre-oc/subscriptions","organizations_url":"https://api.github.com/users/ollieayre-oc/orgs","repos_url":"https://api.github.com/users/ollieayre-oc/repos","events_url":"https://api.github.com/users/ollieayre-oc/events{/privacy}","received_events_url":"https://api.github.com/users/ollieayre-oc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-24T12:26:09Z","updated_at":"2016-05-26T16:02:52Z","closed_at":null,"body":"This is fine on ios but on android the function is called multiple times well before the page has actually finished loading. I've compared this behaviour with the standard react-native webview component and there the function is only triggered once after the page has finished loading.\r\n\r\nMy current usage:\r\n`                <WebViewBridge\r\n                    ref={\"OCwebview\"}\r\n                    onBridgeMessage={this.onBridgeMessage.bind(this)}\r\n                    style={styles.webView}\r\n                    source={{ uri: webViewUrl }}\r\n                    javaScriptEnabled={true}\r\n                    domStorageEnabled={true}\r\n                    onLoad={this.webViewReady.bind(this)}\r\n                    decelerationRate=\"normal\"\r\n                    startInLoadingState={true}\r\n                    scalesPageToFit={true} />\r\n`\r\n\r\nAny help on this would be much appreciated\r\nThanks"},"comment":{"url":"https://api.github.com/repos/alinz/react-native-webview-bridge/issues/comments/221915942","html_url":"https://github.com/alinz/react-native-webview-bridge/issues/93#issuecomment-221915942","issue_url":"https://api.github.com/repos/alinz/react-native-webview-bridge/issues/93","id":221915942,"user":{"login":"dfejgelis","id":370993,"avatar_url":"https://avatars.githubusercontent.com/u/370993?v=3","gravatar_id":"","url":"https://api.github.com/users/dfejgelis","html_url":"https://github.com/dfejgelis","followers_url":"https://api.github.com/users/dfejgelis/followers","following_url":"https://api.github.com/users/dfejgelis/following{/other_user}","gists_url":"https://api.github.com/users/dfejgelis/gists{/gist_id}","starred_url":"https://api.github.com/users/dfejgelis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfejgelis/subscriptions","organizations_url":"https://api.github.com/users/dfejgelis/orgs","repos_url":"https://api.github.com/users/dfejgelis/repos","events_url":"https://api.github.com/users/dfejgelis/events{/privacy}","received_events_url":"https://api.github.com/users/dfejgelis/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T16:02:52Z","updated_at":"2016-05-26T16:02:52Z","body":"Me too"}}
{"actor":{"display_login":"dfejgelis"}}