From d4b210518eaffd3bf1320ca7ce7fa4a6d611528f Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Tue, 29 Jun 2021 17:04:10 -0400 Subject: Cleanup code, Update camera options --- src/components/moments/Moment.tsx | 6 +++--- src/utils/camera.ts | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx index 2e813142..9449271b 100644 --- a/src/components/moments/Moment.tsx +++ b/src/components/moments/Moment.tsx @@ -41,7 +41,7 @@ const Moment: React.FC = ({ }) => { const navigation = useNavigation(); - const handleUploadMoment = () => { + const navigateToCameraScreen = () => { navigation.navigate('CameraScreen', { title, screenType, @@ -84,7 +84,7 @@ const Moment: React.FC = ({ handleUploadMoment()} + onPress={() => navigateToCameraScreen()} color={TAGG_LIGHT_BLUE} style={styles.horizontalMargin} /> @@ -114,7 +114,7 @@ const Moment: React.FC = ({ /> ))} {(images === undefined || images.length === 0) && !userXId && ( - handleUploadMoment()}> + navigateToCameraScreen()}> diff --git a/src/utils/camera.ts b/src/utils/camera.ts index 77f73eea..73461ad7 100644 --- a/src/utils/camera.ts +++ b/src/utils/camera.ts @@ -18,8 +18,7 @@ export const takePicture = ( cameraRef.current?.pausePreview(); const options = { forceUpOrientation: true, - quality: 0.5, - base64: true, + writeExif: false, }; cameraRef.current?.takePictureAsync(options).then((response) => { setShowSaveButton(true); -- cgit v1.2.3-70-g09d2