Skip to content
This repository was archived by the owner on Jun 16, 2023. It is now read-only.

Commit bba84a9

Browse files
committed
fix(cache): store video recordings in same directory as photos
1 parent b1721b8 commit bba84a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RN/RNCamera.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ - (void)record:(NSDictionary *)options resolve:(RCTPromiseResolveBlock)resolve r
428428

429429
dispatch_async(self.sessionQueue, ^{
430430
[self updateFlashMode];
431-
NSString *path = [RNFileSystem generatePathInDirectory:[[RNFileSystem cacheDirectoryPath] stringByAppendingString:@"Camera"] withExtension:@".mov"];
431+
NSString *path = [RNFileSystem generatePathInDirectory:[[RNFileSystem cacheDirectoryPath] stringByAppendingPathComponent:@"Camera"] withExtension:@".mov"];
432432
NSURL *outputURL = [[NSURL alloc] initFileURLWithPath:path];
433433
[self.movieFileOutput startRecordingToOutputFileURL:outputURL recordingDelegate:self];
434434
self.videoRecordedResolve = resolve;

0 commit comments

Comments
 (0)