Skip to content

Commit f7f71e9

Browse files
authored
Merge branch 'develop' into 18874
2 parents 0d40ed2 + 7db35a3 commit f7f71e9

File tree

6 files changed

+30
-9
lines changed

6 files changed

+30
-9
lines changed

ios/StatusIm/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<string>UIInterfaceOrientationLandscapeRight</string>
134134
</array>
135135
<key>UIViewControllerBasedStatusBarAppearance</key>
136-
<true/>
136+
<false/>
137137
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
138138
<array>
139139
<string>A00000080400010101</string>

src/mocks/js_dependencies.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
:FlatList {}
5454
:SectionList {}
5555
:Text {}
56-
:StatusBar {}
56+
:StatusBar {:setBarStyle identity}
5757
:ScrollView {}
5858
:SafeAreaView {}
5959
:KeyboardAvoidingView {}

src/react_native/core.cljs

+2
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,5 @@
210210
(def linking (.-Linking react-native))
211211

212212
(defn open-url [link] (.openURL ^js linking link))
213+
214+
(def set-status-bar-style react-native/StatusBar.setBarStyle)

src/status_im/navigation/effects.cljs

+16-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
(ns status-im.navigation.effects
22
(:require
3+
[quo.theme]
4+
[react-native.core :as rn]
35
[react-native.navigation :as navigation]
46
[status-im.navigation.options :as options]
57
[status-im.navigation.roots :as roots]
@@ -8,10 +10,20 @@
810
[taoensso.timbre :as log]
911
[utils.re-frame :as rf]))
1012

13+
(defn- set-status-bar-color
14+
[theme]
15+
(rn/set-status-bar-style
16+
(if (= theme :dark)
17+
"light-content"
18+
"dark-content")
19+
true))
20+
1121
(rf/reg-fx :set-view-id-fx
1222
(fn [view-id]
1323
(rf/dispatch [:screens/on-will-focus view-id])
14-
(when-let [{:keys [on-focus]} (get views/screens view-id)]
24+
(when-let [{:keys [on-focus options]} (get views/screens view-id)]
25+
(set-status-bar-color (or (:theme options)
26+
(quo.theme/get-theme)))
1527
(when on-focus
1628
(rf/dispatch on-focus)))))
1729

@@ -117,11 +129,12 @@
117129

118130
(defn open-modal
119131
[component]
120-
(let [{:keys [options]} (get views/screens component)
121-
sheet? (:sheet? options)]
132+
(let [{:keys [options name]} (get views/screens component)
133+
sheet? (:sheet? options)]
122134
(if @state/dissmissing
123135
(reset! state/dissmissing component)
124136
(do
137+
(set-view-id name) ; TODO https://github.com/status-im/status-mobile/issues/18811
125138
(reset! state/curr-modal true)
126139
(swap! state/modals conj component)
127140
(navigation/show-modal

src/status_im/navigation/options.cljs

-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@
137137
:decelerate
138138
:factor 1.5}}]}}})
139139

140-
(def camera-screen
141-
{:navigationBar {:backgroundColor colors/black}})
142-
143140
(defn merge-top-bar
144141
[root-options options]
145142
(let [options (:topBar options)]

src/status_im/navigation/screens.cljs

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
(ns status-im.navigation.screens
22
(:require
33
[legacy.status-im.ui.screens.screens :as old-screens]
4+
[quo.foundations.colors :as colors]
45
[status-im.common.emoji-picker.view :as emoji-picker]
56
[status-im.common.lightbox.view :as lightbox]
67
[status-im.config :as config]
@@ -142,7 +143,8 @@
142143
:component photo-selector/photo-selector}
143144

144145
{:name :camera-screen
145-
:options options/camera-screen
146+
:options {:navigationBar {:backgroundColor colors/black}
147+
:theme :dark}
146148
:component camera-screen/camera-screen}
147149

148150
{:name :new-contact
@@ -433,6 +435,13 @@
433435
:options options/transparent-modal-screen-options
434436
:component settings-password/view}]
435437

438+
[{:name :shell
439+
:options {:theme :dark}}
440+
{:name :communities-stack}
441+
{:name :chats-stack}
442+
{:name :wallet-stack}
443+
{:name :browser-stack}]
444+
436445
(when js/goog.DEBUG
437446
[{:name :dev-component-preview
438447
:options {:sheet? true}

0 commit comments

Comments
 (0)