瀏覽代碼

Update RNViewShotModule.java

聂先生 8 年之前
父節點
當前提交
b0f3c3c9f3
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java

+ 1
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java 查看文件

86
                 }
86
                 }
87
             }
87
             }
88
             UIManagerModule uiManager = this.reactContext.getNativeModule(UIManagerModule.class);
88
             UIManagerModule uiManager = this.reactContext.getNativeModule(UIManagerModule.class);
89
-            uiManager.addUIBlock(new ViewShot(tag, format, compressFormat, quality, width, height, file, result, snapshotContentContainer, promise));
89
+            uiManager.addUIBlock(new ViewShot(tag, format, compressFormat, quality, width, height, file, result, snapshotContentContainer,reactContext, promise));
90
         }
90
         }
91
         catch (Exception e) {
91
         catch (Exception e) {
92
             promise.reject(ViewShot.ERROR_UNABLE_TO_SNAPSHOT, "Failed to snapshot view tag "+tag);
92
             promise.reject(ViewShot.ERROR_UNABLE_TO_SNAPSHOT, "Failed to snapshot view tag "+tag);