fable-react
Advanced tools
Comparing version 0.7.9 to 0.7.10
{ | ||
"name": "fable-react", | ||
"version": "0.7.9", | ||
"version": "0.7.10", | ||
"description": "Fable bindings and helpers for React and React Native", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -1,6 +0,5 @@ | ||
import { awaitPromise } from "fable-core/Async"; | ||
import react_native_image_resizer from "react-native-image-resizer"; | ||
export function createResizedImage(path, maxWidth, maxHeight, compressFormat, quality) { | ||
return awaitPromise(react_native_image_resizer.createResizedImage(path, maxWidth, maxHeight, compressFormat, quality)); | ||
return react_native_image_resizer.createResizedImage(path, maxWidth, maxHeight, compressFormat, quality); | ||
} | ||
//# sourceMappingURL=Fable.Helpers.ReactNativeImageResizer.js.map |
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(["exports", "fable-core/umd/Async", "react-native-image-resizer"], factory); | ||
define(["exports", "react-native-image-resizer"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("fable-core/umd/Async"), require("react-native-image-resizer")); | ||
factory(exports, require("react-native-image-resizer")); | ||
} else { | ||
@@ -10,6 +10,6 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.Async, global.reactNativeImageResizer); | ||
factory(mod.exports, global.reactNativeImageResizer); | ||
global.FableHelpersReactNativeImageResizer = mod.exports; | ||
} | ||
})(this, function (exports, _Async, _reactNativeImageResizer) { | ||
})(this, function (exports, _reactNativeImageResizer) { | ||
"use strict"; | ||
@@ -31,5 +31,5 @@ | ||
function createResizedImage(path, maxWidth, maxHeight, compressFormat, quality) { | ||
return (0, _Async.awaitPromise)(_reactNativeImageResizer2.default.createResizedImage(path, maxWidth, maxHeight, compressFormat, quality)); | ||
return _reactNativeImageResizer2.default.createResizedImage(path, maxWidth, maxHeight, compressFormat, quality); | ||
} | ||
}); | ||
//# sourceMappingURL=Fable.Helpers.ReactNativeImageResizer.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2970089
1684