Skip to content

Commit

Permalink
fix(ios): Fix support for react-native 0.74 (#2284)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Mar 20, 2024
1 parent e6b3973 commit 6859d23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ios/ImagePickerUtils.m → ios/ImagePickerUtils.mm
Expand Up @@ -22,7 +22,7 @@ + (void) setupPickerFromOptions:(UIImagePickerController *)picker options:(NSDic
if (target == camera) {
picker.sourceType = UIImagePickerControllerSourceTypeCamera;

if (options[@"durationLimit"] > 0) {
if ([options[@"durationLimit"] doubleValue] > 0) {
picker.videoMaximumDuration = [options[@"durationLimit"] doubleValue];
}

Expand Down
2 changes: 1 addition & 1 deletion react-native-image-picker.podspec
Expand Up @@ -15,7 +15,7 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/react-native-image-picker/react-native-image-picker.git", :tag => "v#{s.version}" }
s.source_files = "ios/*.{h,m,mm}"

s.frameworks = "MobileCoreServices"
s.frameworks = 'Photos','PhotosUI'

if defined?(install_modules_dependencies) != nil
install_modules_dependencies(s)
Expand Down

0 comments on commit 6859d23

Please sign in to comment.