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
   const generator = registeredScreens[screenID];
60
   const generator = registeredScreens[screenID];
61
   if (!generator) {
61
   if (!generator) {
62
     console.error(`Navigation.getRegisteredScreen: ${screenID} used but not yet registered`);
62
     console.error(`Navigation.getRegisteredScreen: ${screenID} used but not yet registered`);
63
-    return;
63
+    return undefined;
64
   }
64
   }
65
   return generator();
65
   return generator();
66
 }
66
 }
93
   return platformSpecific.dismissInAppNotification(params);
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
 export default {
104
 export default {
97
   registerScreen,
105
   registerScreen,
98
   getRegisteredScreen,
106
   getRegisteredScreen,
104
   dismissLightBox,
112
   dismissLightBox,
105
   showInAppNotification,
113
   showInAppNotification,
106
   dismissInAppNotification,
114
   dismissInAppNotification,
107
-  startTabBasedApp: platformSpecific.startTabBasedApp,
108
-  startSingleScreenApp: platformSpecific.startSingleScreenApp
115
+  startTabBasedApp,
116
+  startSingleScreenApp
109
 };
117
 };