[React Native] Provide a way to get a list of registered apps in AppRegistry

This commit is contained in:
Philipp von Weitershausen 2015-08-07 11:50:23 -07:00
parent 331e4a96e9
commit 0f5190e9f3
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ var AppRegistry = {
return appKey; return appKey;
}, },
getAppKeys: function(): Array<string> {
return Object.keys(runnables);
},
runApplication: function(appKey: string, appParameters: any): void { runApplication: function(appKey: string, appParameters: any): void {
console.log( console.log(
'Running application "' + appKey + '" with appParams: ' + 'Running application "' + appKey + '" with appParams: ' +