@umituz/react-native-image 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-image",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Image manipulation and viewing for React Native apps - resize, crop, rotate, flip, compress, gallery viewer",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
import { useImageOperation } from './useImageOperation';
|
|
7
7
|
import { ImageBatchService, type BatchOperation, type BatchProcessingOptions } from '../../infrastructure/services/ImageBatchService';
|
|
8
|
-
import type { ImageFilter } from '../../domain/entities/ImageFilterTypes';
|
|
9
8
|
|
|
10
9
|
export const useImageBatch = () => {
|
|
11
10
|
const { isProcessing, error, execute } = useImageOperation();
|
|
@@ -19,14 +18,10 @@ export const useImageBatch = () => {
|
|
|
19
18
|
const compressBatch = useCallback((uris: string[], quality?: number, options?: BatchProcessingOptions) =>
|
|
20
19
|
execute(() => ImageBatchService.compressBatch(uris, quality, options), 'Failed to compress batch'), [execute]);
|
|
21
20
|
|
|
22
|
-
const filterBatch = useCallback((uris: string[], filter: ImageFilter, options?: BatchProcessingOptions) =>
|
|
23
|
-
execute(() => ImageBatchService.filterBatch(uris, filter, options), 'Failed to filter batch'), [execute]);
|
|
24
|
-
|
|
25
21
|
return {
|
|
26
22
|
processBatch,
|
|
27
23
|
resizeBatch,
|
|
28
24
|
compressBatch,
|
|
29
|
-
filterBatch,
|
|
30
25
|
isBatchProcessing: isProcessing,
|
|
31
26
|
batchError: error,
|
|
32
27
|
};
|