Browse Source

updated type for ViewManagerName

Thibault Malbranche 5 years ago
parent
commit
6c26a892b4
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      js/WebView.android.js
  2. 1
    1
      js/WebView.ios.js

+ 1
- 1
js/WebView.android.js View File

194
     );
194
     );
195
   }
195
   }
196
 
196
 
197
-  getViewManagerConfig = viewManagerName => {
197
+  getViewManagerConfig = (viewManagerName: string) => {
198
     if (!UIManager.getViewManagerConfig) {
198
     if (!UIManager.getViewManagerConfig) {
199
       return UIManager[viewManagerName];
199
       return UIManager[viewManagerName];
200
     }
200
     }

+ 1
- 1
js/WebView.ios.js View File

296
     );
296
     );
297
   }
297
   }
298
 
298
 
299
-  _getViewManagerConfig = viewManagerName => {
299
+  _getViewManagerConfig = (viewManagerName: string) => {
300
     if (!UIManager.getViewManagerConfig) {
300
     if (!UIManager.getViewManagerConfig) {
301
       return UIManager[viewManagerName];
301
       return UIManager[viewManagerName];
302
     }
302
     }