Wallet: fix nested scrollviews warning (#18714)

Wallet: fix nested scrollviews warning (#18714)
This commit is contained in:
Omar Basem 2024-02-07 09:32:53 +04:00 committed by GitHub
parent cc63c8fff5
commit 73450d736a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 23 deletions

View File

@ -29,7 +29,7 @@
{:customization-color account-color {:customization-color account-color
:container-style (style/gradient-cover-container margin-top)}] :container-style (style/gradient-cover-container margin-top)}]
(into (into
[rn/scroll-view {:bounces false} [:<>
[rn/view {:style style/account-avatar-container} [rn/view {:style style/account-avatar-container}
[quo/account-avatar [quo/account-avatar
{:customization-color account-color {:customization-color account-color

View File

@ -93,10 +93,6 @@
on-close #(rf/dispatch [:navigate-back-within-stack :wallet-select-asset])] on-close #(rf/dispatch [:navigate-back-within-stack :wallet-select-asset])]
(fn [] (fn []
[rn/safe-area-view {:style style/container} [rn/safe-area-view {:style style/container}
[rn/scroll-view
{:content-container-style {:flex 1}
:keyboard-should-persist-taps :handled
:scroll-enabled false}
[account-switcher/view [account-switcher/view
{:icon-name :i/arrow-left {:icon-name :i/arrow-left
:on-press on-close :on-press on-close
@ -114,7 +110,7 @@
:margin-vertical 8} :margin-vertical 8}
:data tabs-data :data tabs-data
:on-change on-change-tab}] :on-change on-change-tab}]
[tab-view @search-text @selected-tab on-change-text]]]))) [tab-view @search-text @selected-tab on-change-text]])))
(defn- view-internal (defn- view-internal
[] []