react-native-video-trim 6.0.2 → 6.0.3

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.
@@ -811,7 +811,7 @@ extension VideoTrim {
811
811
 
812
812
  // Old Arch
813
813
  @objc(closeEditor)
814
- func closeEditor() -> Void {
814
+ func _closeEditor() -> Void {
815
815
  closeEditor()
816
816
  }
817
817
  }
@@ -465,8 +465,14 @@ class VideoTrimmerViewController: UIViewController {
465
465
  }
466
466
 
467
467
  public func configure(config: NSDictionary) {
468
- maximumDuration = config["maxDuration"] as? Int ?? 0
469
- minimumDuration = config["minDuration"] as? Int ?? 0
468
+ if let maxDuration = config["maxDuration"] as? Int, maxDuration > 0 {
469
+ maximumDuration = maxDuration
470
+ }
471
+
472
+ if let minDuration = config["minDuration"] as? Int, minDuration > 0 {
473
+ minimumDuration = minDuration
474
+ }
475
+
470
476
  cancelButtonText = config["cancelButtonText"] as? String ?? "Cancel"
471
477
  saveButtonText = config["saveButtonText"] as? String ?? "Save"
472
478
  jumpToPositionOnLoad = config["jumpToPositionOnLoad"] as? Double ?? 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-video-trim",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "Video trimmer for your React Native app",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",