react-native-video-trim 2.2.0 → 2.2.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.
package/README.md CHANGED
@@ -13,8 +13,10 @@
13
13
  - ✅ Check if file is valid video/audio
14
14
  - ✅ File operations: list, clean up, delete specific file
15
15
 
16
+ <div align="left">
16
17
  <img src="images/document_picker.png" width="300" />
17
18
  <img src="images/share_sheet.png" width="300" />
19
+ </div>
18
20
 
19
21
  ## Installation
20
22
 
@@ -334,8 +336,10 @@ useEffect(() => {
334
336
  }, []);
335
337
  ```
336
338
  # Audio support
339
+ <div align="left">
337
340
  <img src="images/audio_android.jpg" width="200" />
338
341
  <img src="images/audio_ios.jpg" width="200" />
342
+ </div>
339
343
 
340
344
  For audio only you have to pass `type=audio` and `outputExt`:
341
345
  ```ts
@@ -365,8 +369,10 @@ FFMPEGKIT_PACKAGE=https pod install
365
369
  ```
366
370
 
367
371
  # Cancel trimming
372
+ <div align="left">
368
373
  <img src="images/progress.jpg" width="200" />
369
374
  <img src="images/cancel_confirm.jpg" width="200" />
375
+ </div>
370
376
 
371
377
  While trimming, you can press Cancel to terminate the process.
372
378
 
@@ -316,6 +316,8 @@ public class VideoTrimModule extends ReactContextBaseJavaModule implements Video
316
316
  } else if (openShareSheetOnFinish) {
317
317
  hideDialog(closeWhenFinish);
318
318
  shareFile(getReactApplicationContext(), new File(in));
319
+ } else {
320
+ hideDialog(closeWhenFinish);
319
321
  }
320
322
  }
321
323
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-video-trim",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Video trimmer for your React Native app",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -158,5 +158,6 @@
158
158
  }
159
159
  ]
160
160
  ]
161
- }
161
+ },
162
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
162
163
  }
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- </Workspace>