diff --git a/src/RNViewShot.web.js b/src/RNViewShot.web.js index 135ec8b..961f5b2 100644 --- a/src/RNViewShot.web.js +++ b/src/RNViewShot.web.js @@ -32,7 +32,9 @@ function captureScreen(options) { } function releaseCapture(uri) { - throw new Error("Tmpfile is not implemented for web. Try base64 or file"); + if (options.result === "tmpfile") { + throw new Error("Tmpfile is not implemented for web. Try base64 or file"); + } } export default {