react-native-compressor 1.5.0 → 1.5.1

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.
Files changed (2) hide show
  1. package/README.md +40 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,9 +1,17 @@
1
1
  ### Would you like to support me?
2
2
 
3
+ <div align="center">
4
+ <a href="https://github.com/nomi9995?tab=followers">
5
+ <img src="https://img.shields.io/github/followers/nomi9995?label=Follow%20%40nomi9995&style=social" />
6
+ </a>
7
+ </br>
3
8
  <a href="https://www.buymeacoffee.com/numan.dev" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
9
+ </div>
4
10
 
5
11
  ---
6
12
 
13
+
14
+
7
15
  # react-native-compressor
8
16
 
9
17
  <!-- Title -->
@@ -26,6 +34,34 @@
26
34
 
27
35
  **If you find this package useful hit the star** 🌟
28
36
 
37
+ # Table of Contents
38
+ <details>
39
+ <summary>Open Table of Contents</summary>
40
+
41
+ * [Installation](#installation)
42
+ + [For React Native](#react-native)
43
+ - [For React Native<0.65](#for-react-native065)
44
+ - [For React Native 0.65 or greater](#for-react-native-065-or-greater)
45
+ + [Managed Expo](#managed-expo)
46
+ * [Usage](#usage)
47
+ + [Image](#image)
48
+ * [Automatic Image Compression Like Whatsapp](#automatic-image-compression-like-whatsapp)
49
+ * [Manual Image Compression](#manual-image-compression)
50
+ * [ImageCompressor API Docs](#imagecompressor)
51
+ + [Video](#video)
52
+ * [Automatic Video Compression Like Whatsapp](#automatic-video-compression-like-whatsapp)
53
+ * [Manual Video Compression](#manual-video-compression)
54
+ * [Cancel Video Compression](#cancel-video-compression)
55
+ * [Video Api Docs](#video-1)
56
+ + [Audio](#audio)
57
+ + [Background Upload](#background-upload)
58
+ - [Other Utilities](#api)
59
+ * [Background Upload](#background-upload-1)
60
+ * [Get Metadata Of Video](#get-metadata-of-video)
61
+ * [Get Real Path](#get-real-path)
62
+ * [Get Temp file Path](#get-temp-file-path)
63
+ </details>
64
+
29
65
  ## Installation
30
66
 
31
67
  ### React Native
@@ -111,7 +147,7 @@ react-native link react-native-compressor
111
147
 
112
148
  ### Image
113
149
 
114
- ##### For Like Whatsapp Image Compression
150
+ ##### Automatic Image Compression Like Whatsapp
115
151
 
116
152
  ```js
117
153
  import { Image } from 'react-native-compressor';
@@ -123,7 +159,7 @@ const result = await Image.compress('file://path_of_file/image.jpg', {
123
159
 
124
160
  [Here is this package comparison of images compression with WhatsApp](https://docs.google.com/spreadsheets/d/13TsnC1c7NOC9aCjzN6wkKurJQPeGRNwDhWsQOkXQskU/edit?usp=sharing)
125
161
 
126
- ##### For manual Compression
162
+ ##### Manual Image Compression
127
163
 
128
164
  ```js
129
165
  import { Image } from 'react-native-compressor';
@@ -136,7 +172,7 @@ const result = await Image.compress('file://path_of_file/image.jpg', {
136
172
 
137
173
  ### Video
138
174
 
139
- ##### For Like Whatsapp Video Compression
175
+ ##### Automatic Video Compression Like Whatsapp
140
176
 
141
177
  ```js
142
178
  import { Video } from 'react-native-compressor';
@@ -158,7 +194,7 @@ const result = await Video.compress(
158
194
 
159
195
  [Here is this package comparison of video compression with WhatsApp](https://docs.google.com/spreadsheets/d/13TsnC1c7NOC9aCjzN6wkKurJQPeGRNwDhWsQOkXQskU/edit#gid=1055406534)
160
196
 
161
- ##### For manual Compression
197
+ ##### Manual Video Compression
162
198
 
163
199
  ```js
164
200
  import { Video } from 'react-native-compressor';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-compressor",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "This library compress image, video and audio",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",