-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ReactInstanceEventListener for Venice and expose in FbReactInstan…
…ceHolder Summary: Add ```ReactInstanceEventListener``` for Venice and migrate Bridge-only callsites from - FbReactInstanceHolder.getReactInstanceManager().addReactInstanceEventListener() - FbReactInstanceHolder.getReactInstanceManager().removeReactInstanceEventListener() To: - FbReactInstanceHolder.addReactInstanceEventListener() - FbReactInstanceHolder.removeReactInstanceEventListener() Changelog: [Android][Changed] - Add ReactInstanceEventListenerV2 for migration Reviewed By: RSNara Differential Revision: D31501785 fbshipit-source-id: e1cd03f07e28fbb995ea0a1bb76400089a461879
- Loading branch information
1 parent
ba7424d
commit ce74aa4
Showing
6 changed files
with
54 additions
and
21 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
23 changes: 23 additions & 0 deletions
23
ReactAndroid/src/main/java/com/facebook/react/ReactInstanceEventListener.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,23 @@ | ||
/* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.react; | ||
|
||
import com.facebook.react.bridge.ReactContext; | ||
|
||
/** | ||
* New Listener interface for react instance events. {@Link | ||
* ReactInstanceManager.ReactInstanceEventListener will be deprecated.} | ||
*/ | ||
public interface ReactInstanceEventListener { | ||
|
||
/** | ||
* Called when the react context is initialized (all modules registered). Always called on the UI | ||
* thread. | ||
*/ | ||
void onReactContextInitialized(ReactContext context); | ||
} |
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