restore the last view before entering background only on android in prod configuration

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
Roman Volosovskyi 2018-09-19 15:14:04 +03:00 committed by yenda
parent 7dbc8a7f39
commit f11b3cc670
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
1 changed files with 1 additions and 0 deletions

View File

@ -321,6 +321,7 @@
(navigation/set-navigator-ref r) (navigation/set-navigator-ref r)
(when (and (when (and
platform/android? platform/android?
(not js/goog.DEBUG)
(not (contains? #{:intro :login} @view-id))) (not (contains? #{:intro :login} @view-id)))
(navigation/navigate-to @view-id))) (navigation/navigate-to @view-id)))
;; see https://reactnavigation.org/docs/en/state-persistence.html#development-mode ;; see https://reactnavigation.org/docs/en/state-persistence.html#development-mode