Remove CameraRoll saving

This commit is contained in:
Ivan Malison 2024-02-05 01:39:30 -07:00
parent 4970018afb
commit b4a5fdebab

View File

@ -1,4 +1,3 @@
import { CameraRoll } from "@react-native-camera-roll/camera-roll";
import React, { useCallback, useRef, useState } from "react"; import React, { useCallback, useRef, useState } from "react";
import { import {
StyleProp, StyleProp,
@ -62,10 +61,6 @@ export const RecordingButton: React.FC<RecordingButtonProps> = ({
}, },
onRecordingFinished: async (video) => { onRecordingFinished: async (video) => {
onMediaCaptured(video, "video"); onMediaCaptured(video, "video");
const path = video.path;
await CameraRoll.saveAsset(`file://${path}`, {
type: "video",
});
onStoppedRecording(); onStoppedRecording();
}, },
}); });