fix: Community display image & cover image rendering fixes (#15047)

This commit is contained in:
Ajay Sivan 2023-02-22 11:41:15 +05:30 committed by GitHub
parent 3fc4c36ac6
commit 20e16e2f42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -58,7 +58,7 @@
[animation] [animation]
(reanimated/apply-animations-to-style (reanimated/apply-animations-to-style
{:transform [{:scale animation}]} {:transform [{:scale animation}]}
{:border-radius 40 {:border-radius 50
:border-width 1 :border-width 1
:border-color colors/white :border-color colors/white
:position :absolute :position :absolute

View File

@ -146,8 +146,11 @@
[rn/view {:style {:height 151}} [rn/view {:style {:height 151}}
[rn/image [rn/image
{:source cover-image {:source cover-image
:style {:overflow :visible ;; Using negative margin-bottom as a workaround because on Android,
:flex 1}}]]) ;; ScrollView clips its children despite setting overflow: 'visible'.
;; Related issue: https://github.com/facebook/react-native/issues/31218
:style {:margin-bottom -16
:flex 1}}]])
(when children (when children
[rn/view [rn/view
{:flex 1 {:flex 1