|
@@ -65,7 +65,7 @@ public class RNViewShotModule extends ReactContextBaseJavaModule {
|
65
|
65
|
Integer height = options.hasKey("height") ? (int)(displayMetrics.density * options.getDouble("height")) : null;
|
66
|
66
|
String result = options.hasKey("result") ? options.getString("result") : "file";
|
67
|
67
|
try {
|
68
|
|
- String name = options.hasKey("name") ? options.getString("name") : null;
|
|
68
|
+ String name = options.hasKey("filename") ? options.getString("filename") : null;
|
69
|
69
|
File tmpFile = "file".equals(result) ? createTempFile(getReactApplicationContext(), format, name) : null;
|
70
|
70
|
UIManagerModule uiManager = this.reactContext.getNativeModule(UIManagerModule.class);
|
71
|
71
|
uiManager.addUIBlock(new ViewShot(tag, format, compressFormat, quality, width, height, tmpFile, result, promise));
|