Skip to content

Commit

Permalink
Add gesture-handler-root-HOC to detect toast's gestures on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Jun 29, 2023
1 parent 45883f5 commit 341f4a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/status_im2/navigation/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@
opts)}})))

;; toast
(navigation/register-component "toasts" (fn [] views/toasts) js/undefined)
(navigation/register-component "toasts"
#(gesture/gesture-handler-root-hoc views/toasts
#js {:flex 0})
(fn [] views/toasts))

(re-frame/reg-fx :show-toasts
(fn []
Expand Down

0 comments on commit 341f4a2

Please sign in to comment.