mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
//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:
committed by
Facebook GitHub Bot
parent
f9ca6d73c7
commit
515694663d
-21
@@ -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);
|
||||
}
|
||||
+21
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user