Browse Source

Revert "added showOverlay temp API"

This reverts commit c2ef2608c1.
Daniel Zlotin 8 years ago
parent
commit
7540fa7c13

+ 1
- 6
src/Navigation.js View File

130
   return platformSpecific.startSingleScreenApp(params);
130
   return platformSpecific.startSingleScreenApp(params);
131
 }
131
 }
132
 
132
 
133
-function showOverlay(params) {
134
-  return platformSpecific.showOverlay(params);
135
-}
136
-
137
 export default {
133
 export default {
138
   getRegisteredScreen,
134
   getRegisteredScreen,
139
   registerComponent,
135
   registerComponent,
145
   showInAppNotification: showInAppNotification,
141
   showInAppNotification: showInAppNotification,
146
   dismissInAppNotification: dismissInAppNotification,
142
   dismissInAppNotification: dismissInAppNotification,
147
   startTabBasedApp: startTabBasedApp,
143
   startTabBasedApp: startTabBasedApp,
148
-  startSingleScreenApp: startSingleScreenApp,
149
-  showOverlay
144
+  startSingleScreenApp: startSingleScreenApp
150
 };
145
 };

+ 2
- 7
src/deprecated/platformSpecificDeprecated.android.js View File

421
   if (fab === null || fab === undefined) {
421
   if (fab === null || fab === undefined) {
422
     return;
422
     return;
423
   }
423
   }
424
-  if (Object.keys(fab).length === 0) {
424
+  if (Object.keys(fab).length === 0 ) {
425
     return {};
425
     return {};
426
   }
426
   }
427
 
427
 
539
   newPlatformSpecific.dismissContextualMenu();
539
   newPlatformSpecific.dismissContextualMenu();
540
 }
540
 }
541
 
541
 
542
-function showOverlay(params) {
543
-  newPlatformSpecific.showOverlay(params);
544
-}
545
-
546
 export default {
542
 export default {
547
   startTabBasedApp,
543
   startTabBasedApp,
548
   startSingleScreenApp,
544
   startSingleScreenApp,
563
   navigatorToggleNavBar,
559
   navigatorToggleNavBar,
564
   showSnackbar,
560
   showSnackbar,
565
   showContextualMenu,
561
   showContextualMenu,
566
-  dismissContextualMenu,
567
-  showOverlay
562
+  dismissContextualMenu
568
 };
563
 };

+ 6
- 11
src/deprecated/platformSpecificDeprecated.ios.js View File

77
                     titleImage={tab.titleImage}
77
                     titleImage={tab.titleImage}
78
                     component={tab.screen}
78
                     component={tab.screen}
79
                     passProps={{
79
                     passProps={{
80
-                      navigatorID: tab.navigationParams.navigatorID,
81
-                      screenInstanceID: tab.navigationParams.screenInstanceID,
82
-                      navigatorEventID: tab.navigationParams.navigatorEventID
83
-                    }}
80
+                    navigatorID: tab.navigationParams.navigatorID,
81
+                    screenInstanceID: tab.navigationParams.screenInstanceID,
82
+                    navigatorEventID: tab.navigationParams.navigatorEventID
83
+                  }}
84
                     style={tab.navigationParams.navigatorStyle}
84
                     style={tab.navigationParams.navigatorStyle}
85
                     leftButtons={tab.navigationParams.navigatorButtons.leftButtons}
85
                     leftButtons={tab.navigationParams.navigatorButtons.leftButtons}
86
                     rightButtons={tab.navigationParams.navigatorButtons.rightButtons}
86
                     rightButtons={tab.navigationParams.navigatorButtons.rightButtons}
515
     navigatorEventID,
515
     navigatorEventID,
516
     navigatorID
516
     navigatorID
517
   };
517
   };
518
-
518
+  
519
   savePassProps(params);
519
   savePassProps(params);
520
 
520
 
521
   Notification.show({
521
   Notification.show({
567
   // Android only
567
   // Android only
568
 }
568
 }
569
 
569
 
570
-function showOverlay(params) {
571
-  showInAppNotification(params);
572
-}
573
-
574
 export default {
570
 export default {
575
   startTabBasedApp,
571
   startTabBasedApp,
576
   startSingleScreenApp,
572
   startSingleScreenApp,
594
   navigatorSwitchToTab,
590
   navigatorSwitchToTab,
595
   navigatorToggleNavBar,
591
   navigatorToggleNavBar,
596
   showContextualMenu,
592
   showContextualMenu,
597
-  dismissContextualMenu,
598
-  showOverlay
593
+  dismissContextualMenu
599
 };
594
 };

+ 1
- 7
src/platformSpecific.android.js View File

131
   NativeReactModule.dismissContextualMenu(screenInstanceID);
131
   NativeReactModule.dismissContextualMenu(screenInstanceID);
132
 }
132
 }
133
 
133
 
134
-function showOverlay(params) {
135
-  savePassProps(params);
136
-  NativeReactModule.showOverlay(params);
137
-}
138
-
139
 module.exports = {
134
 module.exports = {
140
   startApp,
135
   startApp,
141
   push,
136
   push,
158
   setBottomTabBadgeByIndex,
153
   setBottomTabBadgeByIndex,
159
   showSnackbar,
154
   showSnackbar,
160
   showContextualMenu,
155
   showContextualMenu,
161
-  dismissContextualMenu,
162
-  showOverlay
156
+  dismissContextualMenu
163
 };
157
 };