Debug mode fix: photo selector (#16146)

* Debug mode fix: photo selector
This commit is contained in:
Omar Basem 2023-06-05 12:39:25 +04:00 committed by GitHub
parent ba2f037f48
commit 8407cd66d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -87,8 +87,12 @@
:orientation ["portrait"]
:backgroundColor :transparent}
:modalPresentationStyle :overCurrentContext
:animations {:showModal {:alpha {:from 1 :to 1 :duration 300}}
:dismissModal {:alpha {:from 1 :to 1 :duration 300}}}})
;; disabled on iOS in debug mode:
;; https://github.com/status-im/status-mobile/pull/16053#issuecomment-1568349702
:animations (if (or platform/android? (not js/goog.DEBUG))
{:showModal {:alpha {:from 1 :to 1 :duration 300}}
:dismissModal {:alpha {:from 1 :to 1 :duration 300}}}
{})})
(def dark-screen
(merge (statusbar true)