{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/8714","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/8714/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/8714/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/8714/events","html_url":"https://github.com/facebook/react-native/issues/8714","id":165068196,"number":8714,"title":"What is the method can be used to send an event from native module to JS？","user":{"login":"livoras","id":6436132,"avatar_url":"https://avatars.githubusercontent.com/u/6436132?v=3","gravatar_id":"","url":"https://api.github.com/users/livoras","html_url":"https://github.com/livoras","followers_url":"https://api.github.com/users/livoras/followers","following_url":"https://api.github.com/users/livoras/following{/other_user}","gists_url":"https://api.github.com/users/livoras/gists{/gist_id}","starred_url":"https://api.github.com/users/livoras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livoras/subscriptions","organizations_url":"https://api.github.com/users/livoras/orgs","repos_url":"https://api.github.com/users/livoras/repos","events_url":"https://api.github.com/users/livoras/events{/privacy}","received_events_url":"https://api.github.com/users/livoras/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-12T12:29:56Z","updated_at":"2016-08-10T02:48:45Z","closed_at":"2016-07-13T01:44:10Z","body":"According to React Native [documentation](https://facebook.github.io/react-native/docs/native-modules-ios.html#sending-events-to-javascript), you can use `sendAppEventWithName` to send an event from native code to JS. But in my XCode, code suggestions tell me that this method is deprecated.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6436132/16766881/2eed0fc6-486f-11e6-82a5-cf76b89946ad.png)\r\n\r\nThis [issue](https://github.com/facebook/react-native/issues/394) indicates that `sendDeviceEventWithName` should work but actually it's also deprecated.\r\n\r\nWhat is the proper way to send an event to JS?"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/238751839","html_url":"https://github.com/facebook/react-native/issues/8714#issuecomment-238751839","issue_url":"https://api.github.com/repos/facebook/react-native/issues/8714","id":238751839,"user":{"login":"andybangs","id":8417465,"avatar_url":"https://avatars.githubusercontent.com/u/8417465?v=3","gravatar_id":"","url":"https://api.github.com/users/andybangs","html_url":"https://github.com/andybangs","followers_url":"https://api.github.com/users/andybangs/followers","following_url":"https://api.github.com/users/andybangs/following{/other_user}","gists_url":"https://api.github.com/users/andybangs/gists{/gist_id}","starred_url":"https://api.github.com/users/andybangs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andybangs/subscriptions","organizations_url":"https://api.github.com/users/andybangs/orgs","repos_url":"https://api.github.com/users/andybangs/repos","events_url":"https://api.github.com/users/andybangs/events{/privacy}","received_events_url":"https://api.github.com/users/andybangs/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T02:48:45Z","updated_at":"2016-08-10T02:48:45Z","body":"@purplepeng can you explain what you meant by \"I realized the process of sent event from native to JS in two separate module before, so it doesn't work.\"\r\n\r\nI am trying to send an event to JS and keep seeing the error that the bridge is not set."}}
{"actor":{"display_login":"andybangs"}}