{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/8661","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/8661/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/8661/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/8661/events","html_url":"https://github.com/facebook/react-native/issues/8661","id":164597273,"number":8661,"title":"[Android][0.29] No longer possible to access Activity from SimpleViewManager","user":{"login":"marcshilling","id":5598961,"avatar_url":"https://avatars.githubusercontent.com/u/5598961?v=3","gravatar_id":"","url":"https://api.github.com/users/marcshilling","html_url":"https://github.com/marcshilling","followers_url":"https://api.github.com/users/marcshilling/followers","following_url":"https://api.github.com/users/marcshilling/following{/other_user}","gists_url":"https://api.github.com/users/marcshilling/gists{/gist_id}","starred_url":"https://api.github.com/users/marcshilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcshilling/subscriptions","organizations_url":"https://api.github.com/users/marcshilling/orgs","repos_url":"https://api.github.com/users/marcshilling/repos","events_url":"https://api.github.com/users/marcshilling/events{/privacy}","received_events_url":"https://api.github.com/users/marcshilling/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-07-08T19:11:55Z","updated_at":"2016-08-08T20:50:18Z","closed_at":"2016-08-05T20:18:04Z","body":"According to the 0.29.0 upgrade docs, it's now very easy to extend `ReactContextBaseJavaModule` and  use `getCurrentActivity` to get the activity reference in native Android **modules**. However, it no longer appears to be possible to get access to the current activity from native Android **UI Components**.\r\n\r\nContinuing a discussion started [here](https://github.com/facebook/react-native/commit/49f20f41546e3ba8e7fe43c84c4c701684d0434d#commitcomment-18177188), I need access to the activity so that I can create a `FragmentManager` to add a `Fragment` to the `FrameLayout` being vended from `SimpleViewManager`. There was a suggestion that `ReactContext.getCurrentActivity()` be made public, which seems like a bad idea, but I can't think of another way. "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/238372667","html_url":"https://github.com/facebook/react-native/issues/8661#issuecomment-238372667","issue_url":"https://api.github.com/repos/facebook/react-native/issues/8661","id":238372667,"user":{"login":"lschmierer","id":2204708,"avatar_url":"https://avatars.githubusercontent.com/u/2204708?v=3","gravatar_id":"","url":"https://api.github.com/users/lschmierer","html_url":"https://github.com/lschmierer","followers_url":"https://api.github.com/users/lschmierer/followers","following_url":"https://api.github.com/users/lschmierer/following{/other_user}","gists_url":"https://api.github.com/users/lschmierer/gists{/gist_id}","starred_url":"https://api.github.com/users/lschmierer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lschmierer/subscriptions","organizations_url":"https://api.github.com/users/lschmierer/orgs","repos_url":"https://api.github.com/users/lschmierer/repos","events_url":"https://api.github.com/users/lschmierer/events{/privacy}","received_events_url":"https://api.github.com/users/lschmierer/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T20:50:18Z","updated_at":"2016-08-08T20:50:18Z","body":"Thank you, this seems to be a decent woraround!"}}
{"actor":{"display_login":"lschmierer"}}