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

View File

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