added expo/ImageManipulator.manipulateAsync

This commit is contained in:
levan basharuli
2018-11-21 02:07:57 +04:00
parent 28e745f92d
commit f2b6c010d2
2 changed files with 18 additions and 0 deletions
+15
View File
@@ -413,6 +413,21 @@ async () => {
result.width;
};
async () => {
const result = await ImageManipulator.manipulateAsync('url', [
{ rotate: 360 },
{ resize: { width: 300 } },
{ resize: { height: 300 } },
{ resize: { height: 300, width: 300 } },
], {
compress: 0.75
});
result.height;
result.uri;
result.width;
};
FaceDetector.Constants.Mode.fast;
FaceDetector.Constants.Mode.accurate;
FaceDetector.Constants.Landmarks.all;
+3
View File
@@ -11,6 +11,7 @@
// Tina Roh <https://github.com/tinaroh>
// Nathan Phillip Brink <https://github.com/binki>
// Martin Olsson <https://github.com/mo>
// Levan Basharuli <https://github.com/levansuper>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -1559,6 +1560,8 @@ export namespace ImageManipulator {
}
function manipulate(uri: string, actions: Action[], saveOptions?: SaveOptions): Promise<ImageResult>;
function manipulateAsync(uri: string, actions: Action[], saveOptions?: SaveOptions): Promise<ImageResult>;
}
/**