Browse Source

remove unused param from function (#3039)

Garrett McCullough 6 years ago
parent
commit
74a8c6bb30

+ 1
- 1
docs/screen-api.md View File

121
 });
121
 });
122
 ```
122
 ```
123
 
123
 
124
-## dismissLightBox(params = {})
124
+## dismissLightBox()
125
 
125
 
126
 Dismiss the current lightbox.
126
 Dismiss the current lightbox.
127
 
127
 

+ 1
- 1
docs/top-level-api.md View File

191
 });
191
 });
192
 ```
192
 ```
193
 
193
 
194
-## dismissLightBox(params = {})
194
+## dismissLightBox()
195
 
195
 
196
 Dismiss the current lightbox.
196
 Dismiss the current lightbox.
197
 
197
 

+ 2
- 2
src/Navigation.js View File

119
   return platformSpecific.showLightBox(params);
119
   return platformSpecific.showLightBox(params);
120
 }
120
 }
121
 
121
 
122
-function dismissLightBox(params = {}) {
123
-  return platformSpecific.dismissLightBox(params);
122
+function dismissLightBox() {
123
+  return platformSpecific.dismissLightBox();
124
 }
124
 }
125
 
125
 
126
 function showInAppNotification(params = {}) {
126
 function showInAppNotification(params = {}) {

+ 2
- 2
src/Screen.js View File

61
     return Navigation.showLightBox(params);
61
     return Navigation.showLightBox(params);
62
   }
62
   }
63
 
63
 
64
-  dismissLightBox(params = {}) {
65
-    return Navigation.dismissLightBox(params);
64
+  dismissLightBox() {
65
+    return Navigation.dismissLightBox();
66
   }
66
   }
67
 
67
 
68
   showInAppNotification(params = {}) {
68
   showInAppNotification(params = {}) {

+ 1
- 1
src/deprecated/platformSpecificDeprecated.ios.js View File

670
   });
670
   });
671
 }
671
 }
672
 
672
 
673
-function dismissLightBox(params) {
673
+function dismissLightBox() {
674
   Modal.dismissLightBox();
674
   Modal.dismissLightBox();
675
 }
675
 }
676
 
676