diff options
| author | Shravya Ramesh <37447613+shravyaramesh@users.noreply.github.com> | 2020-11-02 10:23:59 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-02 13:23:59 -0500 |
| commit | 5cc11257d356f364c8c2ad388db8187787bd5c74 (patch) | |
| tree | 874d3966dd98b5694075bcd5744e7c063cc083c3 /src/components/taggs/TwitterTaggPost.tsx | |
| parent | e1c69fd44b3f5fdab4f42fa3db8902ba09f6ab79 (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.tsx | 3 |
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: { |
