fix(onboarding): Increase hit area for all selectors (#21355)
* Increase hit-slop for all selectors * Remove unnecessary `:f>` wrapper
This commit is contained in:
parent
1691e2fe34
commit
6dde1d7b74
|
@ -32,7 +32,8 @@
|
||||||
[rn/pressable
|
[rn/pressable
|
||||||
(when-not disabled?
|
(when-not disabled?
|
||||||
{:on-press on-press
|
{:on-press on-press
|
||||||
:allow-multiple-presses? true})
|
:allow-multiple-presses? true
|
||||||
|
:hit-slop 12})
|
||||||
[rn/view
|
[rn/view
|
||||||
{:style outer-styles
|
{:style outer-styles
|
||||||
:needs-offscreen-alpha-compositing true
|
:needs-offscreen-alpha-compositing true
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
(reset! shell.state/screen-height height)
|
(reset! shell.state/screen-height height)
|
||||||
(async-storage/set-item! :screen-height height))))
|
(async-storage/set-item! :screen-height height))))
|
||||||
|
|
||||||
(defn f-view
|
(defn view
|
||||||
[dark-overlay?]
|
[dark-overlay?]
|
||||||
(let [view-id (rf/sub [:view-id])
|
(let [view-id (rf/sub [:view-id])
|
||||||
animate? (not dark-overlay?)
|
animate? (not dark-overlay?)
|
||||||
|
@ -94,5 +94,3 @@
|
||||||
:blur-radius (if platform/android? 25 10)
|
:blur-radius (if platform/android? 25 10)
|
||||||
:blur-type :transparent
|
:blur-type :transparent
|
||||||
:overlay-color :transparent}])]))
|
:overlay-color :transparent}])]))
|
||||||
|
|
||||||
(defn view [dark-overlay?] [:f> f-view dark-overlay?])
|
|
||||||
|
|
Loading…
Reference in New Issue