Migrate ReactInstanceEventListener to kotlin (#41098)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41098

Migrate ReactInstanceEventListener to kotlin

changelog: [internal] internal

Reviewed By: christophpurrer

Differential Revision: D50338295

fbshipit-source-id: 805b4ef65b8d88e9cde3f77f791d3a8d6f2e0a3c
This commit is contained in:
David Vacca
2023-10-26 18:33:02 -07:00
committed by Facebook GitHub Bot
parent 6b3289bc73
commit ac7b158b3b
@@ -5,19 +5,15 @@
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react;
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 {
import com.facebook.react.bridge.ReactContext
/** Interface to subscribe for react instance events */
interface ReactInstanceEventListener {
/**
* Called when the react context is initialized (all modules registered). Always called on the UI
* thread.
*/
void onReactContextInitialized(ReactContext context);
fun onReactContextInitialized(context: ReactContext)
}