[reduce overdraw] Remove stack card background on Android

This commit is contained in:
Roman Volosovskyi 2019-02-28 12:35:34 +02:00
parent fd59e76603
commit d7009cbd28
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 5 additions and 1 deletions

View File

@ -72,7 +72,11 @@
(defn stack-navigator [routes config]
(nav-reagent/stack-navigator
routes
(merge {:headerMode "none"} (prepare-config config))))
(cond->
(merge {:headerMode "none"}
(prepare-config config))
platform/android?
(assoc :cardStyle {:backgroundColor nil}))))
(defn switch-navigator [routes config]
(nav-reagent/switch-navigator