Skip to content

Commit 3bcfb10

Browse files
committed
add docs
1 parent feb5737 commit 3bcfb10

File tree

1 file changed

+8
-1
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ public interface ReactHost {
189189

190190
/** Remove a listener previously added with [addReactInstanceEventListener]. */
191191
public fun removeReactInstanceEventListener(listener: ReactInstanceEventListener)
192-
192+
193+
/**
194+
* Sets the source of the bundle to be loaded from the packager server and updates the packager connection.
195+
*
196+
* @param debugServerHost host and port of the server, for example "localhost:8081"
197+
* @param moduleName the module name to load, for example "js/RNTesterApp.android"
198+
* @param queryBuilder a function that takes current packager options and returns updated options
199+
*/
193200
public fun setBundleSource(debugServerHost: String, moduleName: String, queryBuilder: (Map<String, String>) -> Map<String, String> = { it })
194201
}

0 commit comments

Comments
 (0)