//xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appregistry:appregistryAndroid (#43858)

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

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D55725317

fbshipit-source-id: eb0b583070dea1bc7ccac5dfd5d5d983c59c1b6b
This commit is contained in:
Andrew Datsenko
2024-04-08 14:28:46 -07:00
committed by Facebook GitHub Bot
parent f9ca6d73c7
commit 515694663d
2 changed files with 21 additions and 21 deletions
@@ -1,21 +0,0 @@
/*
* 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.modules.appregistry;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.WritableMap;
/** JS module interface - main entry point for launching React application for a given key. */
public interface AppRegistry extends JavaScriptModule {
void runApplication(String appKey, WritableMap appParameters);
void unmountApplicationComponentAtRootTag(int rootNodeTag);
void startHeadlessTask(int taskId, String taskKey, WritableMap data);
}
@@ -0,0 +1,21 @@
/*
* 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.modules.appregistry
import com.facebook.react.bridge.JavaScriptModule
import com.facebook.react.bridge.WritableMap
/** JS module interface - main entry point for launching React application for a given key. */
public interface AppRegistry : JavaScriptModule {
public fun runApplication(appKey: String, appParameters: WritableMap)
public fun unmountApplicationComponentAtRootTag(rootNodeTag: Int)
public fun startHeadlessTask(taskId: Int, taskKey: String, data: WritableMap)
}