From e2f31aae00dcc43f36a168c56bea91625d209341 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Fri, 10 Mar 2017 16:24:47 +0200 Subject: [PATCH] fix tabs on iOS release build --- src/status_im/components/tabs/tabs.cljs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/status_im/components/tabs/tabs.cljs b/src/status_im/components/tabs/tabs.cljs index 192694708d..f23d5eeeec 100644 --- a/src/status_im/components/tabs/tabs.cljs +++ b/src/status_im/components/tabs/tabs.cljs @@ -54,5 +54,11 @@ (defn tabs [{:keys [tab-list selected-view-id prev-view-id]}] [tabs-container - [view st/tabs-inner-container - (doall (map-indexed #(create-tab %1 %2 selected-view-id prev-view-id) tab-list))]]) + (into + [view st/tabs-inner-container] + (let [tabs (into [] tab-list)] + [[create-tab 0 (nth tabs 0) selected-view-id prev-view-id] + [create-tab 1 (nth tabs 1) selected-view-id prev-view-id] + [create-tab 2 (nth tabs 2) selected-view-id prev-view-id]]) + ;; todo: figure why it doesn't work on iOS release build + #_(map-indexed #(create-tab %1 %2 selected-view-id prev-view-id) tab-list))])