Browse Source

Remove unused parameter from showSnackback (#1192)

Guy Carmeli 7 years ago
parent
commit
8c5ee7e6cd
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/Screen.js
  2. 1
    1
      src/deprecated/platformSpecificDeprecated.android.js

+ 1
- 1
src/Screen.js View File

121
   }
121
   }
122
 
122
 
123
   showSnackbar(params = {}) {
123
   showSnackbar(params = {}) {
124
-    return platformSpecific.showSnackbar(this, params);
124
+    return platformSpecific.showSnackbar(params);
125
   }
125
   }
126
 
126
 
127
   dismissSnackbar() {
127
   dismissSnackbar() {

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

624
   screen.navigatorStyle = Object.assign({}, Screen.navigatorStyle, screen.navigatorStyle);
624
   screen.navigatorStyle = Object.assign({}, Screen.navigatorStyle, screen.navigatorStyle);
625
 }
625
 }
626
 
626
 
627
-function showSnackbar(navigator, params) {
627
+function showSnackbar(params) {
628
   const adapted = _.cloneDeep(params);
628
   const adapted = _.cloneDeep(params);
629
   if (adapted.backgroundColor) {
629
   if (adapted.backgroundColor) {
630
     adapted.backgroundColor = processColor(adapted.backgroundColor);
630
     adapted.backgroundColor = processColor(adapted.backgroundColor);