Quellcode durchsuchen

Update RNViewShotModule.java

聂先生 vor 7 Jahren
Ursprung
Commit
b0f3c3c9f3

+ 1
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java Datei anzeigen

@@ -86,7 +86,7 @@ public class RNViewShotModule extends ReactContextBaseJavaModule {
86 86
                 }
87 87
             }
88 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 91
         catch (Exception e) {
92 92
             promise.reject(ViewShot.ERROR_UNABLE_TO_SNAPSHOT, "Failed to snapshot view tag "+tag);