aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-02 19:15:54 -0400
committerIvan Chen <ivan@tagg.id>2021-07-02 19:15:54 -0400
commit2409cfa6133421536d8cdb782f6ec7f24dd0e881 (patch)
tree857161fc8c79d9d066b25a5e31039ba62053854b /src
parente15c4568aacc9551487b34b2ef9b7d7acb56ddba (diff)
Adjust progress bar style
Diffstat (limited to 'src')
-rw-r--r--src/screens/moments/CameraScreen.tsx22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/screens/moments/CameraScreen.tsx b/src/screens/moments/CameraScreen.tsx
index 317a2b37..36ce3999 100644
--- a/src/screens/moments/CameraScreen.tsx
+++ b/src/screens/moments/CameraScreen.tsx
@@ -151,13 +151,17 @@ const CameraScreen: React.FC<CameraScreenProps> = ({route, navigation}) => {
setMediaFromGallery(pic.uri);
});
}}
- style={styles.captureButtonContainer}>
+ style={
+ isRecording
+ ? styles.captureButtonVideoContainer
+ : styles.captureButtonContainer
+ }>
<View style={styles.captureButton} />
</TouchableOpacity>
{isRecording && (
<AnimatedCircularProgress
- size={93}
- width={4}
+ size={95}
+ width={6}
fill={100}
rotation={0}
duration={60000 + 1000} // an extra second for UI to load
@@ -214,6 +218,18 @@ const styles = StyleSheet.create({
flexDirection: 'column',
backgroundColor: 'black',
},
+ captureButtonVideoContainer: {
+ alignSelf: 'center',
+ backgroundColor: 'transparent',
+ borderRadius: 100,
+ borderWidth: 15,
+ borderColor: 'rgba(255,255,255,0.3)',
+ width: 93,
+ height: 93,
+ flexDirection: 'row',
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
captureButtonContainer: {
alignSelf: 'center',
backgroundColor: 'transparent',