mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
[React Native] Provide a way to get a list of registered apps in AppRegistry
This commit is contained in:
@@ -67,6 +67,10 @@ var AppRegistry = {
|
||||
return appKey;
|
||||
},
|
||||
|
||||
getAppKeys: function(): Array<string> {
|
||||
return Object.keys(runnables);
|
||||
},
|
||||
|
||||
runApplication: function(appKey: string, appParameters: any): void {
|
||||
console.log(
|
||||
'Running application "' + appKey + '" with appParams: ' +
|
||||
|
||||
Reference in New Issue
Block a user