fix(onboarding): Increase hit area for all selectors (#21355)

* Increase hit-slop for all selectors

* Remove unnecessary `:f>` wrapper
This commit is contained in:
Ulises Manuel 2024-10-03 13:35:47 -06:00 committed by GitHub
parent 1691e2fe34
commit 6dde1d7b74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -32,7 +32,8 @@
[rn/pressable
(when-not disabled?
{:on-press on-press
:allow-multiple-presses? true})
:allow-multiple-presses? true
:hit-slop 12})
[rn/view
{:style outer-styles
:needs-offscreen-alpha-compositing true

View File

@ -58,7 +58,7 @@
(reset! shell.state/screen-height height)
(async-storage/set-item! :screen-height height))))
(defn f-view
(defn view
[dark-overlay?]
(let [view-id (rf/sub [:view-id])
animate? (not dark-overlay?)
@ -94,5 +94,3 @@
:blur-radius (if platform/android? 25 10)
:blur-type :transparent
:overlay-color :transparent}])]))
(defn view [dark-overlay?] [:f> f-view dark-overlay?])