diff --git a/ios/RNPhotosFramework/RNPFManager.m b/ios/RNPhotosFramework/RNPFManager.m index 31fabae..d23c47e 100644 --- a/ios/RNPhotosFramework/RNPFManager.m +++ b/ios/RNPhotosFramework/RNPFManager.m @@ -485,7 +485,7 @@ -(void) updateAssets:(NSMutableArray *)assets andUpdateObjs:(NSDictio } PHAssetResource* videoResource = nil; // Check if the new livephoto asset has a video part. - NSArray* assetResources = [PHAssetResource assetResourcesForAsset:asset]; + NSArray* assetResources = [PHAssetResource assetResourcesForLivePhoto:livePhoto]; for(PHAssetResource* resource in assetResources) { if (resource.type == PHAssetResourceTypeFullSizePairedVideo) { videoResource = resource; @@ -494,7 +494,6 @@ -(void) updateAssets:(NSMutableArray *)assets andUpdateObjs:(NSDictio } // if for some reason the fullSizeVideo does not exist, then fallback to the original video if (!videoResource) { - assetResources = [PHAssetResource assetResourcesForLivePhoto:livePhoto]; for(PHAssetResource* resource in assetResources) { if (resource.type == PHAssetResourceTypePairedVideo) { videoResource = resource;