aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShravya Ramesh <37447613+shravyaramesh@users.noreply.github.com>2020-11-02 10:23:59 -0800
committerGitHub <noreply@github.com>2020-11-02 13:23:59 -0500
commit5cc11257d356f364c8c2ad388db8187787bd5c74 (patch)
tree874d3966dd98b5694075bcd5744e7c063cc083c3 /src
parente1c69fd44b3f5fdab4f42fa3db8902ba09f6ab79 (diff)
[Fix] Resizes non square images to be displayed without being cropped (#92)
* resizes non square images to be displayed without being cropped * changed image background colour * fixes typo from content to contain!!
Diffstat (limited to 'src')
-rw-r--r--src/components/taggs/TaggPost.tsx3
-rw-r--r--src/components/taggs/TwitterTaggPost.tsx3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/components/taggs/TaggPost.tsx b/src/components/taggs/TaggPost.tsx
index 6ad9158b..f587506f 100644
--- a/src/components/taggs/TaggPost.tsx
+++ b/src/components/taggs/TaggPost.tsx
@@ -60,8 +60,9 @@ const styles = StyleSheet.create({
imageWithMargin: {
width: SCREEN_WIDTH,
height: SCREEN_WIDTH,
- backgroundColor: '#eee',
+ backgroundColor: '#1d0034',
marginBottom: 30,
+ resizeMode: 'contain',
},
textContianer: {marginBottom: 50, paddingHorizontal: 10},
text: {
diff --git a/src/components/taggs/TwitterTaggPost.tsx b/src/components/taggs/TwitterTaggPost.tsx
index e2dca115..2b064610 100644
--- a/src/components/taggs/TwitterTaggPost.tsx
+++ b/src/components/taggs/TwitterTaggPost.tsx
@@ -179,8 +179,9 @@ const styles = StyleSheet.create({
image: {
width: SCREEN_WIDTH - 20,
height: SCREEN_WIDTH - 20,
- backgroundColor: '#eee',
+ backgroundColor: '#1d0034',
borderRadius: 15,
+ resizeMode: 'contain',
},
// footer
footer: {