Remove CameraRoll saving
This commit is contained in:
parent
4970018afb
commit
b4a5fdebab
@ -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();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user