Просмотр исходного кода

Merge branch 'master' into docs/url-change

Thibault Malbranche 5 лет назад
Родитель
Сommit
492be021d2
No account linked to committer's email address
2 измененных файлов: 3 добавлений и 1 удалений
  1. 2
    0
      android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java
  2. 1
    1
      package.json

+ 2
- 0
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java Просмотреть файл

290
   public void setHardwareAccelerationDisabled(WebView view, boolean disabled) {
290
   public void setHardwareAccelerationDisabled(WebView view, boolean disabled) {
291
     if (disabled) {
291
     if (disabled) {
292
       view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
292
       view.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
293
+    } else {
294
+      view.setLayerType(View.LAYER_TYPE_NONE, null);
293
     }
295
     }
294
   }
296
   }
295
 
297
 

+ 1
- 1
package.json Просмотреть файл

8
     "Thibault Malbranche <malbranche.thibault@gmail.com>"
8
     "Thibault Malbranche <malbranche.thibault@gmail.com>"
9
   ],
9
   ],
10
   "license": "MIT",
10
   "license": "MIT",
11
-  "version": "5.8.1",
11
+  "version": "5.8.2",
12
   "homepage": "https://github.com/react-native-community/react-native-webview#readme",
12
   "homepage": "https://github.com/react-native-community/react-native-webview#readme",
13
   "scripts": {
13
   "scripts": {
14
     "ci": "CI=true && yarn lint && yarn test",
14
     "ci": "CI=true && yarn lint && yarn test",