{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/2012","labels_url":"https://api.github.com/repos/facebook/react-native/issues/2012/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2012/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/2012/events","html_url":"https://github.com/facebook/react-native/issues/2012","id":95285171,"number":2012,"title":"injectedJavaScript on WebView doesn't work.","user":{"login":"alinz","id":967050,"avatar_url":"https://avatars.githubusercontent.com/u/967050?v=3","gravatar_id":"","url":"https://api.github.com/users/alinz","html_url":"https://github.com/alinz","followers_url":"https://api.github.com/users/alinz/followers","following_url":"https://api.github.com/users/alinz/following{/other_user}","gists_url":"https://api.github.com/users/alinz/gists{/gist_id}","starred_url":"https://api.github.com/users/alinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alinz/subscriptions","organizations_url":"https://api.github.com/users/alinz/orgs","repos_url":"https://api.github.com/users/alinz/repos","events_url":"https://api.github.com/users/alinz/events{/privacy}","received_events_url":"https://api.github.com/users/alinz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-15T20:38:26Z","updated_at":"2015-07-15T20:49:44Z","closed_at":"2015-07-15T20:49:44Z","body":"Based on my simple example `` doesn't work. Am I doing something wrong?\r\n\r\nExample available on [rnplay](https://rnplay.org/apps/FxUbpQ)\r\n\r\n```js\r\n\r\nvar React = require('react-native');\r\nvar {\r\n  AppRegistry,\r\n  WebView\r\n} = React;\r\n\r\nvar SampleApp = React.createClass({\r\n  render: function() {\r\n    var url = 'http://google.com';\r\n    \r\n    var script = 'alert(\"Hello\")';\r\n    \r\n    return (\r\n      <WebView injectedJavaScript={script} url={url} style={{flex: 1}}/>\r\n    );\r\n  }\r\n});\r\n\r\nAppRegistry.registerComponent('SampleApp', () => SampleApp);\r\n\r\nmodule.exports = SampleApp;\r\n```\r\n\r\nExpected behaviour : an alert box should popup with `Hello` message"}}