Skip to content

Commit

Permalink
Migrate ReactInstanceEventListener to kotlin (#41098)
Browse files Browse the repository at this point in the history
Summary:

Migrate ReactInstanceEventListener to kotlin

changelog: [internal] internal

Reviewed By: christophpurrer

Differential Revision: D50338295
  • Loading branch information
mdvacca authored and facebook-github-bot committed Oct 21, 2023
1 parent b868119 commit ad78bb8
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit ad78bb8

Please sign in to comment.