Browse Source

fix issues in unmount (android)

iou90 8 years ago
parent
commit
e26d65984b
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      autoHeightWebView/index.android.js
  2. 1
    1
      package.json

+ 1
- 1
autoHeightWebView/index.android.js View File

75
     componentWillUnmount() {
75
     componentWillUnmount() {
76
         this.stopInterval();
76
         this.stopInterval();
77
         if (IsBelowKitKat) {
77
         if (IsBelowKitKat) {
78
-            DeviceEventEmitter.removeListener("webViewBridgeMessage", listenWebViewBridgeMessage);
78
+            DeviceEventEmitter.removeListener("webViewBridgeMessage", this.listenWebViewBridgeMessage);
79
         }
79
         }
80
     }
80
     }
81
 
81
 

+ 1
- 1
package.json View File

1
 {
1
 {
2
   "name": "react-native-autoheightwebview",
2
   "name": "react-native-autoheightwebview",
3
-  "version": "0.0.14",
3
+  "version": "0.0.15",
4
   "description": "An auto height webview for React Native",
4
   "description": "An auto height webview for React Native",
5
   "main": "autoHeightWebView",
5
   "main": "autoHeightWebView",
6
   "files": ["android/", "autoHeightWebView/"],
6
   "files": ["android/", "autoHeightWebView/"],