Browse Source

Navigation correct exports

Daniel Zlotin 8 years ago
parent
commit
d91f1b6a24
1 changed files with 11 additions and 3 deletions
  1. 11
    3
      src/Navigation.js

+ 11
- 3
src/Navigation.js View File

@@ -60,7 +60,7 @@ function getRegisteredScreen(screenID) {
60 60
   const generator = registeredScreens[screenID];
61 61
   if (!generator) {
62 62
     console.error(`Navigation.getRegisteredScreen: ${screenID} used but not yet registered`);
63
-    return;
63
+    return undefined;
64 64
   }
65 65
   return generator();
66 66
 }
@@ -93,6 +93,14 @@ function dismissInAppNotification(params = {}) {
93 93
   return platformSpecific.dismissInAppNotification(params);
94 94
 }
95 95
 
96
+function startTabBasedApp(params) {
97
+  return platformSpecific.startTabBasedApp(params);
98
+}
99
+
100
+function startSingleScreenApp(params) {
101
+  return platformSpecific.startSingleScreenApp(params);
102
+}
103
+
96 104
 export default {
97 105
   registerScreen,
98 106
   getRegisteredScreen,
@@ -104,6 +112,6 @@ export default {
104 112
   dismissLightBox,
105 113
   showInAppNotification,
106 114
   dismissInAppNotification,
107
-  startTabBasedApp: platformSpecific.startTabBasedApp,
108
-  startSingleScreenApp: platformSpecific.startSingleScreenApp
115
+  startTabBasedApp,
116
+  startSingleScreenApp
109 117
 };