aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/TwitterTaggPost.tsx
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/components/taggs/TwitterTaggPost.tsx
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/components/taggs/TwitterTaggPost.tsx')
-rw-r--r--src/components/taggs/TwitterTaggPost.tsx3
1 files changed, 2 insertions, 1 deletions
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: {