Skip to content

Commit

Permalink
Add comment about flex 0 style
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Jul 4, 2023
1 parent 1718f4c commit 0125fb0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/status_im2/navigation/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@

;; toast
(navigation/register-component "toasts"
; `:flex 0` is the same as `flex: 0 0 auto` in CSS.
; We need this to override the HOC default layout which is
; flex 1. If we don't override this property, this HOC
; will catch all touches/gestures while the toast is shown,
; preventing the user doing any action in the app
#(gesture/gesture-handler-root-hoc views/toasts
#js {:flex 0})
(fn [] views/toasts))
Expand Down

0 comments on commit 0125fb0

Please sign in to comment.