aboutsummaryrefslogtreecommitdiff
path: root/src/components/camera/SaveButton.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-16 18:47:19 -0400
committerIvan Chen <ivan@tagg.id>2021-07-16 18:47:19 -0400
commit1e0f1c0c6200af5d4f9554778341d991b47381da (patch)
tree74cf4b09f8fc415700cd7c89d8c8f0bee378eff5 /src/components/camera/SaveButton.tsx
parentbd6a926099b57cc2f9cda95a344ee65e7e693f24 (diff)
Add styling
Diffstat (limited to 'src/components/camera/SaveButton.tsx')
-rw-r--r--src/components/camera/SaveButton.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/camera/SaveButton.tsx b/src/components/camera/SaveButton.tsx
index 104e7c30..d1b87e65 100644
--- a/src/components/camera/SaveButton.tsx
+++ b/src/components/camera/SaveButton.tsx
@@ -1,18 +1,19 @@
import React from 'react';
-import {Text, TouchableOpacity} from 'react-native';
+import {StyleProp, Text, TouchableOpacity, ViewStyle} from 'react-native';
import SaveIcon from '../../assets/icons/camera/save.svg';
import {styles} from './styles';
interface SaveButtonProps {
onPress: () => void;
+ style?: StyleProp<ViewStyle>;
}
/*
* Appears when a picture has been taken,
* On click, saves the captured image to "Recents" album on device gallery
*/
-export const SaveButton: React.FC<SaveButtonProps> = ({onPress}) => (
- <TouchableOpacity onPress={onPress} style={styles.saveButton}>
+export const SaveButton: React.FC<SaveButtonProps> = ({onPress, style}) => (
+ <TouchableOpacity onPress={onPress} style={[styles.saveButton, style]}>
<SaveIcon width={40} height={40} />
<Text style={styles.saveButtonLabel}>Save</Text>
</TouchableOpacity>