fix switcher cards position in ios (#16301)

This commit is contained in:
Parvesh Monu 2023-06-19 16:41:40 +05:30 committed by GitHub
parent 93cf54919f
commit 472a013cd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 11 deletions

View File

@ -70,17 +70,18 @@
(let [data (if (seq switcher-cards) switcher-cards empty-cards)]
[:<>
[rn/flat-list
{:data data
:render-fn render-card
:key-fn :id
:header (jump-to-text)
:ref #(reset! state/jump-to-list-ref %)
:num-columns 2
:column-wrapper-style {:margin-horizontal shell-margin
:justify-content :space-between
:margin-bottom 16}
:style style/jump-to-list
:content-container-style {:padding-bottom (utils/bottom-tabs-container-height)}}]
{:data data
:render-fn render-card
:key-fn :id
:header (jump-to-text)
:ref #(reset! state/jump-to-list-ref %)
:num-columns 2
:column-wrapper-style {:margin-horizontal shell-margin
:justify-content :space-between
:margin-bottom 16}
:style style/jump-to-list
:content-inset-adjustment-behavior :never
:content-container-style {:padding-bottom (utils/bottom-tabs-container-height)}}]
(when-not (seq switcher-cards)
[placeholder])]))