Parcourir la source

Update RNViewShotModule.java

聂先生 il y a 7 ans
Parent
révision
b0f3c3c9f3

+ 1
- 1
android/src/main/java/fr/greweb/reactnativeviewshot/RNViewShotModule.java Voir le fichier

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