Make getCurrentActivity public on ReactContext
Summary: Addresses #8661 Closes https://github.com/facebook/react-native/pull/9071 Differential Revision: D3641285 Pulled By: foghina fbshipit-source-id: dede86743efddc33b6ead053e805770fc213685c
This commit is contained in:
parent
a06e4b75e4
commit
7606564611
|
@ -283,7 +283,7 @@ public class ReactContext extends ContextWrapper {
|
|||
* DO NOT HOLD LONG-LIVED REFERENCES TO THE OBJECT RETURNED BY THIS METHOD, AS THIS WILL CAUSE
|
||||
* MEMORY LEAKS.
|
||||
*/
|
||||
/* package */ @Nullable Activity getCurrentActivity() {
|
||||
public @Nullable Activity getCurrentActivity() {
|
||||
if (mCurrentActivity == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue