Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.uimanager;
package com.facebook.react.uimanager

/**
* Listener used to hook into the UIManager update process. Deprecated: use UIManagerListener
* instead. This will be deleted in some future release.
* Listener used to hook into the UIManager update process.
*/
@Deprecated
@Deprecated("Use UIManagerListener instead. This will be deleted in some future release.")
public interface UIManagerModuleListener {
/**
* Called right before view updates are dispatched at the end of a batch. This is useful if a
* module needs to add UIBlocks to the queue before it is flushed.
*/
void willDispatchViewUpdates(UIManagerModule uiManager);
public fun willDispatchViewUpdates(uiManager: UIManagerModule)
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (c) Meta Platforms, Inc. and 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.uimanager

/** Enables lazy discovery of a specific [ViewManager] by its name. */
public interface ViewManagerResolver {
/**
* [UIManagerModule] class uses this method to get a [ViewManager] by its name. This is the
* same name that comes from JS by `UIManager.ViewManagerName` call.
*/
public fun getViewManager(viewManagerName: String): ViewManager<*, *>?

/**
* Provides a list of view manager names to register in JS as `UIManager.ViewManagerName`
*/
public fun getViewManagerNames(): Collection<String>
}