Skip to content

Commit b8f9d98

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Add KDoc documentation to ComponentNameResolverBinding (#54349)
Summary: Pull Request resolved: #54349 Added comprehensive KDoc documentation to the ComponentNameResolverBinding object and its JNI method for installing component name resolvers into the JavaScript runtime. changelog: [internal] internal Reviewed By: lenaic Differential Revision: D85926888 fbshipit-source-id: 253577d4c5d48bee22acb5666680becd4e632879
1 parent 7d7d843 commit b8f9d98

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ComponentNameResolverBinding.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,23 @@ import com.facebook.react.bridge.RuntimeExecutor
1212
import com.facebook.soloader.SoLoader
1313
import kotlin.jvm.JvmStatic
1414

15+
/**
16+
* JNI binding for installing a ComponentNameResolver into the JavaScript runtime.
17+
*
18+
* This object provides a native binding to install a [ComponentNameResolver] into the React Native
19+
* JavaScript runtime, making component name information available to the native side.
20+
*/
1521
@DoNotStripAny
1622
internal object ComponentNameResolverBinding {
1723
init {
1824
SoLoader.loadLibrary("uimanagerjni")
1925
}
2026

27+
/**
28+
* Installs a ComponentNameResolver into the JavaScript runtime.
29+
*
30+
* @param runtimeExecutor The runtime executor for the JavaScript runtime
31+
* @param componentNameResolver The component name resolver to install
32+
*/
2133
@JvmStatic external fun install(runtimeExecutor: RuntimeExecutor, componentNameResolver: Any)
2234
}

0 commit comments

Comments
 (0)