Browse Source

Update RNViewShotModule.java

聂先生 7 years ago
parent
commit
b0f3c3c9f3

+ 1
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java View File

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);