File tree 6 files changed +30
-9
lines changed
6 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 133
133
<string >UIInterfaceOrientationLandscapeRight </string >
134
134
</array >
135
135
<key >UIViewControllerBasedStatusBarAppearance </key >
136
- <true />
136
+ <false />
137
137
<key >com.apple.developer.nfc.readersession.iso7816.select-identifiers </key >
138
138
<array >
139
139
<string >A00000080400010101 </string >
Original file line number Diff line number Diff line change 53
53
:FlatList {}
54
54
:SectionList {}
55
55
:Text {}
56
- :StatusBar {}
56
+ :StatusBar {:setBarStyle identity }
57
57
:ScrollView {}
58
58
:SafeAreaView {}
59
59
:KeyboardAvoidingView {}
Original file line number Diff line number Diff line change 210
210
(def linking (.-Linking react-native))
211
211
212
212
(defn open-url [link] (.openURL ^js linking link))
213
+
214
+ (def set-status-bar-style react-native /StatusBar.setBarStyle )
Original file line number Diff line number Diff line change 1
1
(ns status-im.navigation.effects
2
2
(:require
3
+ [quo.theme]
4
+ [react-native.core :as rn]
3
5
[react-native.navigation :as navigation]
4
6
[status-im.navigation.options :as options]
5
7
[status-im.navigation.roots :as roots]
8
10
[taoensso.timbre :as log]
9
11
[utils.re-frame :as rf]))
10
12
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
+
11
21
(rf/reg-fx :set-view-id-fx
12
22
(fn [view-id]
13
23
(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 )))
15
27
(when on-focus
16
28
(rf/dispatch on-focus)))))
17
29
117
129
118
130
(defn open-modal
119
131
[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)]
122
134
(if @state/dissmissing
123
135
(reset! state/dissmissing component)
124
136
(do
137
+ (set-view-id name) ; TODO https://github.com/status-im/status-mobile/issues/18811
125
138
(reset! state/curr-modal true )
126
139
(swap! state/modals conj component)
127
140
(navigation/show-modal
Original file line number Diff line number Diff line change 137
137
:decelerate
138
138
:factor 1.5 }}]}}})
139
139
140
- (def camera-screen
141
- {:navigationBar {:backgroundColor colors/black}})
142
-
143
140
(defn merge-top-bar
144
141
[root-options options]
145
142
(let [options (:topBar options)]
Original file line number Diff line number Diff line change 1
1
(ns status-im.navigation.screens
2
2
(:require
3
3
[legacy.status-im.ui.screens.screens :as old-screens]
4
+ [quo.foundations.colors :as colors]
4
5
[status-im.common.emoji-picker.view :as emoji-picker]
5
6
[status-im.common.lightbox.view :as lightbox]
6
7
[status-im.config :as config]
142
143
:component photo-selector/photo-selector}
143
144
144
145
{:name :camera-screen
145
- :options options/camera-screen
146
+ :options {:navigationBar {:backgroundColor colors/black}
147
+ :theme :dark }
146
148
:component camera-screen/camera-screen}
147
149
148
150
{:name :new-contact
433
435
:options options/transparent-modal-screen-options
434
436
:component settings-password/view}]
435
437
438
+ [{:name :shell
439
+ :options {:theme :dark }}
440
+ {:name :communities-stack }
441
+ {:name :chats-stack }
442
+ {:name :wallet-stack }
443
+ {:name :browser-stack }]
444
+
436
445
(when js/goog.DEBUG
437
446
[{:name :dev-component-preview
438
447
:options {:sheet? true }
You can’t perform that action at this time.
0 commit comments