Bladeren bron

remove unused param from function (#3039)

Garrett McCullough 6 jaren geleden
bovenliggende
commit
74a8c6bb30
5 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  1. 1
    1
      docs/screen-api.md
  2. 1
    1
      docs/top-level-api.md
  3. 2
    2
      src/Navigation.js
  4. 2
    2
      src/Screen.js
  5. 1
    1
      src/deprecated/platformSpecificDeprecated.ios.js

+ 1
- 1
docs/screen-api.md Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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 Bestand weergeven

@@ -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