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,7 +121,7 @@ this.props.navigator.showLightBox({
121 121
 });
122 122
 ```
123 123
 
124
-## dismissLightBox(params = {})
124
+## dismissLightBox()
125 125
 
126 126
 Dismiss the current lightbox.
127 127
 

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

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

+ 2
- 2
src/Navigation.js View File

@@ -119,8 +119,8 @@ function showLightBox(params = {}) {
119 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 126
 function showInAppNotification(params = {}) {

+ 2
- 2
src/Screen.js View File

@@ -61,8 +61,8 @@ class Navigator {
61 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 68
   showInAppNotification(params = {}) {

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

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