aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-07-29 07:57:02 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-07-29 07:57:02 -0700
commit901a70f5b61a409e96b741505af44b6f7e6fcd7d (patch)
tree9547e875c7132f10adf2b537f665450eb332fd97 /src
parent4276cf917835c661b0bddda8863937dd4158247e (diff)
Fix inline style
Diffstat (limited to 'src')
-rw-r--r--src/screens/moments/CameraScreen.tsx15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/screens/moments/CameraScreen.tsx b/src/screens/moments/CameraScreen.tsx
index ef0ddd11..40db1191 100644
--- a/src/screens/moments/CameraScreen.tsx
+++ b/src/screens/moments/CameraScreen.tsx
@@ -87,14 +87,7 @@ const CameraScreen: React.FC<CameraScreenProps> = ({route, navigation}) => {
<Modal
transparent={true}
visible={isRecording && cameraType === 'front' && flashMode === 'on'}>
- <View
- style={{
- width: SCREEN_WIDTH,
- height: SCREEN_HEIGHT,
- backgroundColor: '#fff',
- opacity: 0.5,
- }}
- />
+ <View style={styles.flashView} />
</Modal>
<TouchableOpacity style={styles.closeButton} onPress={handleClose}>
<CloseIcon height={25} width={25} color={'white'} />
@@ -180,6 +173,12 @@ const styles = StyleSheet.create({
flexDirection: 'column',
backgroundColor: 'black',
},
+ flashView: {
+ width: SCREEN_WIDTH,
+ height: SCREEN_HEIGHT,
+ backgroundColor: '#fff',
+ opacity: 0.5,
+ },
captureButtonVideoContainer: {
alignSelf: 'center',
backgroundColor: 'transparent',