aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-11-11 11:01:33 -0800
committerGitHub <noreply@github.com>2020-11-11 14:01:33 -0500
commit321c1f9fc883b0f0accff614f0a995fd41c960fe (patch)
tree0c1a10331093f107085667675361b943fd6a7641
parent3362da273a4ffcc7d6362278bcb9fd919deda2b9 (diff)
Use the actual height for cover (#120)
-rw-r--r--src/components/profile/Cover.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/profile/Cover.tsx b/src/components/profile/Cover.tsx
index 37ecb9bd..36e41776 100644
--- a/src/components/profile/Cover.tsx
+++ b/src/components/profile/Cover.tsx
@@ -1,7 +1,7 @@
import React from 'react';
import {Image, StyleSheet} from 'react-native';
import Animated from 'react-native-reanimated';
-import {IMAGE_WIDTH, COVER_HEIGHT} from '../../constants';
+import {IMAGE_WIDTH, COVER_HEIGHT, IMAGE_HEIGHT} from '../../constants';
import {AuthContext, ProfileContext} from '../../routes/';
const {interpolate, Extrapolate} = Animated;
@@ -38,7 +38,7 @@ const styles = StyleSheet.create({
},
image: {
width: IMAGE_WIDTH,
- height: COVER_HEIGHT,
+ height: IMAGE_HEIGHT,
},
});
export default Cover;