aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-20 12:51:06 -0400
committerIvan Chen <ivan@tagg.id>2021-07-23 18:36:29 -0400
commit7ecd7835751480ef13553864cd58fd644f2849c8 (patch)
treef4159380ee25e60dfc516f1d4c9b24062ebdd883 /src
parentb06b93e77ca7ec1b1107c0a58dbc2dd370208ccf (diff)
Update navigation to edit media instead of caption screen
Diffstat (limited to 'src')
-rw-r--r--src/screens/moments/CameraScreen.tsx14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/screens/moments/CameraScreen.tsx b/src/screens/moments/CameraScreen.tsx
index 33ee2347..6e3e5184 100644
--- a/src/screens/moments/CameraScreen.tsx
+++ b/src/screens/moments/CameraScreen.tsx
@@ -74,16 +74,6 @@ const CameraScreen: React.FC<CameraScreenProps> = ({route, navigation}) => {
});
};
- const navigateToCaptionScreen = (isVideo: boolean, uri: string) => {
- navigation.navigate('CaptionScreen', {
- screenType,
- media: {
- uri,
- isVideo,
- },
- });
- };
-
const handleClose = () => {
navigation.dangerouslyGetParent()?.setOptions({
tabBarVisible: true,
@@ -116,9 +106,7 @@ const CameraScreen: React.FC<CameraScreenProps> = ({route, navigation}) => {
}
activeOpacity={1}
onLongPress={() => {
- takeVideo(cameraRef, (vid) => {
- navigateToCaptionScreen(true, vid.uri);
- });
+ takeVideo(cameraRef, (vid) => navigateToEditMedia(vid.uri));
setIsRecording(true);
}}
onPressOut={async () => {