Skip to content

Commit b0f3c3c

Browse files
authored
Update RNViewShotModule.java
1 parent c421819 commit b0f3c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void takeSnapshot(int tag, ReadableMap options, Promise promise) {
8686
}
8787
}
8888
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));
9090
}
9191
catch (Exception e) {
9292
promise.reject(ViewShot.ERROR_UNABLE_TO_SNAPSHOT, "Failed to snapshot view tag "+tag);

0 commit comments

Comments
 (0)