forked from microsoft/react-native-code-push
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#491 from igrayson/patch-1
[Android] Support React instances with no Activity
- Loading branch information
Showing
5 changed files
with
141 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
android/app/src/main/java/com/microsoft/codepush/react/ReactInstanceHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.microsoft.codepush.react; | ||
|
||
import com.facebook.react.ReactInstanceManager; | ||
|
||
/** | ||
* Provides access to a {@link ReactInstanceManager}. | ||
* | ||
* ReactNativeHost already implements this interface, if you make use of that react-native | ||
* component (just add `implements ReactInstanceHolder`). | ||
*/ | ||
public interface ReactInstanceHolder { | ||
|
||
/** | ||
* Get the current {@link ReactInstanceManager} instance. May return null. | ||
*/ | ||
ReactInstanceManager getReactInstanceManager(); | ||
} |