From 0f5190e9f3423d6d24af47aff2aae0585462f5bf Mon Sep 17 00:00:00 2001 From: Philipp von Weitershausen Date: Fri, 7 Aug 2015 11:50:23 -0700 Subject: [PATCH] [React Native] Provide a way to get a list of registered apps in AppRegistry --- Libraries/AppRegistry/AppRegistry.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/AppRegistry/AppRegistry.js b/Libraries/AppRegistry/AppRegistry.js index 44cc1c72e..3cf7f3ab0 100644 --- a/Libraries/AppRegistry/AppRegistry.js +++ b/Libraries/AppRegistry/AppRegistry.js @@ -67,6 +67,10 @@ var AppRegistry = { return appKey; }, + getAppKeys: function(): Array { + return Object.keys(runnables); + }, + runApplication: function(appKey: string, appParameters: any): void { console.log( 'Running application "' + appKey + '" with appParams: ' +