aboutsummaryrefslogtreecommitdiff
path: root/src/components/camera/GalleryIcon.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-30 14:27:25 -0400
committerIvan Chen <ivan@tagg.id>2021-06-30 14:27:25 -0400
commit3b7297189633cda8b886fa06f4b9d4787b6aa7c7 (patch)
tree14e88a1559480f4546a26216e2e35b94567bd674 /src/components/camera/GalleryIcon.tsx
parent2f3244dfa11cc23b804930ad448222bbff4f022a (diff)
Clean up code, Remove tab bar logic to use modal style instead
Diffstat (limited to 'src/components/camera/GalleryIcon.tsx')
-rw-r--r--src/components/camera/GalleryIcon.tsx14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/camera/GalleryIcon.tsx b/src/components/camera/GalleryIcon.tsx
index c49ace7d..bc8b1d41 100644
--- a/src/components/camera/GalleryIcon.tsx
+++ b/src/components/camera/GalleryIcon.tsx
@@ -23,7 +23,19 @@ export const GalleryIcon: React.FC<GalleryIconProps> = ({
const navigation = useNavigation();
return (
<TouchableOpacity
- onPress={() => navigateToImagePicker(navigation, screenType, title)}
+ onPress={() =>
+ navigateToImagePicker((pic) =>
+ navigation.navigate('ZoomInCropper', {
+ screenType,
+ title,
+ media: {
+ filename: pic.filename,
+ uri: pic.path,
+ isVideo: false,
+ },
+ }),
+ )
+ }
style={styles.saveButton}>
{mostRecentPhotoUri !== '' ? (
<Image