fix: Community display image & cover image rendering fixes (#15047)
This commit is contained in:
parent
3fc4c36ac6
commit
20e16e2f42
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue