@oguzhnatly/react-native-image-manipulator 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.4
2
+
3
+ - Typescript module declarations improved and Pod Errors fixed.
4
+
1
5
  ## 1.0.3
2
6
 
3
7
  - Errors fixed.
package/README.md CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
  1. Open up `android/app/src/main/java/[...]/MainActivity.java`
27
27
 
28
- - Add `import com.reactnativeimagemanipulator.RNImageManipulatorPackage;` to the imports at the top of the file
28
+ - Add `import com.oguzhnatly.rnimagemanipulator.RNImageManipulatorPackage;` to the imports at the top of the file
29
29
  - Add `new RNImageManipulatorPackage()` to the list returned by the `getPackages()` method
30
30
 
31
31
  2. Append the following lines to `android/settings.gradle`:
@@ -1,5 +1 @@
1
-
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.reactnativeimagemanipulator">
4
-
5
- </manifest>
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.oguzhnatly.rnimagemanipulator"></manifest>
@@ -1,4 +1,4 @@
1
- package com.reactnativeimagemanipulator;
1
+ package com.oguzhnatly.rnimagemanipulator;
2
2
 
3
3
  import android.graphics.Bitmap;
4
4
  import android.graphics.Matrix;
@@ -1,5 +1,5 @@
1
1
 
2
- package com.reactnativeimagemanipulator;
2
+ package com.oguzhnatly.rnimagemanipulator;
3
3
 
4
4
  import java.util.Arrays;
5
5
  import java.util.Collections;
package/index.d.ts CHANGED
@@ -1,35 +1,30 @@
1
1
  declare module '@oguzhnatly/react-native-image-manipulator' {
2
- import React from 'react';
3
- import RNImageManipulator from './index';
4
-
5
- export type ImageResult = {
6
- uri: string;
7
- width: number;
8
- height: number;
9
- base64?: string;
10
- };
11
-
12
- export function manipulate(
13
- uri: string,
14
- actions: Array<{
15
- resize?: {width?: number; height?: number};
16
- rotate?: number;
17
- flip?: {vertical?: boolean; horizontal?: boolean};
18
- crop?: {
19
- originX?: number;
20
- originY?: number;
21
- width?: number;
22
- height?: number;
23
- };
24
- }>,
25
- saveOptions: {
26
- compress?: number;
27
- format?: 'jpeg' | 'png';
28
- base64?: boolean;
29
- },
30
- callback: (uri: string) => void,
31
- ): Promise<ImageResult>;
32
-
33
- export default RNImageManipulator;
34
- }
35
-
2
+ import React from 'react';
3
+
4
+ export type ImageResult = {
5
+ uri: string;
6
+ width: number;
7
+ height: number;
8
+ base64?: string;
9
+ };
10
+
11
+ export function manipulate(
12
+ uri: string,
13
+ actions: Array<{
14
+ resize?: {width?: number; height?: number};
15
+ rotate?: number;
16
+ flip?: {vertical?: boolean; horizontal?: boolean};
17
+ crop?: {
18
+ originX?: number;
19
+ originY?: number;
20
+ width?: number;
21
+ height?: number;
22
+ };
23
+ }>,
24
+ saveOptions: {
25
+ compress?: number;
26
+ format?: 'jpeg' | 'png';
27
+ base64?: boolean;
28
+ },
29
+ ): Promise<ImageResult>;
30
+ }
package/package.json CHANGED
@@ -1,10 +1,26 @@
1
1
  {
2
2
  "name": "@oguzhnatly/react-native-image-manipulator",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "ImageManipulator for react native without Expo and Unimodules. Based on Expo ImageManipulator",
5
5
  "main": "index.js",
6
6
  "author": "oguzhnatly",
7
7
  "homepage": "https://github.com/oguzhnatly/react-native-image-manipulator",
8
8
  "license": "MIT",
9
- "typings": "index.d.ts"
9
+ "typings": "index.d.ts",
10
+ "keywords": [
11
+ "react-native",
12
+ "react",
13
+ "rotate",
14
+ "flip",
15
+ "image",
16
+ "manipulator",
17
+ "react-native-rotate-image",
18
+ "react-native-flip-image",
19
+ "react-native-image-manipulator"
20
+ ],
21
+ "dependencies": {},
22
+ "devDependencies": {
23
+ "react-native": "^0.68.0",
24
+ "typescript": "^4.6.3"
25
+ }
10
26
  }