mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
Include UI toggle for all builds (#13464)
This commit is contained in:
parent
707cf82b8b
commit
430f322f95
@ -6,8 +6,7 @@
|
|||||||
["@react-native-community/hooks" :as hooks]
|
["@react-native-community/hooks" :as hooks]
|
||||||
["react-native-navigation" :refer (Navigation)]
|
["react-native-navigation" :refer (Navigation)]
|
||||||
["rn-emoji-keyboard" :refer (EmojiKeyboard)]
|
["rn-emoji-keyboard" :refer (EmojiKeyboard)]
|
||||||
["react-native-draggable-flatlist" :default DraggableFlatList]
|
["react-native-draggable-flatlist" :default DraggableFlatList]))
|
||||||
[status-im.utils.config :as config]))
|
|
||||||
|
|
||||||
(def rn-draggable-flatlist (reagent/adapt-react-class DraggableFlatList))
|
(def rn-draggable-flatlist (reagent/adapt-react-class DraggableFlatList))
|
||||||
|
|
||||||
@ -108,7 +107,7 @@
|
|||||||
:property (:opacity layout-animation-properties)}}})
|
:property (:opacity layout-animation-properties)}}})
|
||||||
|
|
||||||
(defonce enable-layout-animations
|
(defonce enable-layout-animations
|
||||||
(when (and platform/android? config/quo-preview-enabled?)
|
(when platform/android?
|
||||||
(.setLayoutAnimationEnabledExperimental ^js ui-manager true)))
|
(.setLayoutAnimationEnabledExperimental ^js ui-manager true)))
|
||||||
|
|
||||||
(def activity-indicator (reagent/adapt-react-class (.-ActivityIndicator ^js rn)))
|
(def activity-indicator (reagent/adapt-react-class (.-ActivityIndicator ^js rn)))
|
||||||
|
@ -40,8 +40,7 @@
|
|||||||
|
|
||||||
(utils.universal-links/initialize)
|
(utils.universal-links/initialize)
|
||||||
|
|
||||||
(when config/quo-preview-enabled?
|
(async-storage/get-item :new-ui-enabled? #(reset! config/new-ui-enabled? %))
|
||||||
(async-storage/get-item :new-ui-enabled? #(reset! config/new-ui-enabled? %)))
|
|
||||||
|
|
||||||
;;DEV
|
;;DEV
|
||||||
(snoopy/subscribe!)
|
(snoopy/subscribe!)
|
||||||
|
@ -127,14 +127,13 @@
|
|||||||
[:multiaccounts.ui/switch-wallet-connect-enabled (not wallet-connect-enabled?)])
|
[:multiaccounts.ui/switch-wallet-connect-enabled (not wallet-connect-enabled?)])
|
||||||
:accessory :switch
|
:accessory :switch
|
||||||
:active wallet-connect-enabled?}
|
:active wallet-connect-enabled?}
|
||||||
(when config/quo-preview-enabled?
|
{:size :small
|
||||||
{:size :small
|
:title (i18n/label :t/new-ui)
|
||||||
:title (i18n/label :t/new-ui)
|
:accessibility-label :new-ui-toggle
|
||||||
:accessibility-label :new-ui-toggle
|
:container-margin-bottom 8
|
||||||
:container-margin-bottom 8
|
:on-press #(re-frame/dispatch [:toggle-new-ui])
|
||||||
:on-press #(re-frame/dispatch [:toggle-new-ui])
|
:accessory :switch
|
||||||
:accessory :switch
|
:active new-ui-enabled?}]))
|
||||||
:active new-ui-enabled?})]))
|
|
||||||
|
|
||||||
(defn- flat-list-data [options]
|
(defn- flat-list-data [options]
|
||||||
(normal-mode-settings-data options))
|
(normal-mode-settings-data options))
|
||||||
|
@ -885,14 +885,13 @@
|
|||||||
:options {:topBar {:visible false}}
|
:options {:topBar {:visible false}}
|
||||||
:component bug-report/bug-report}]
|
:component bug-report/bug-report}]
|
||||||
|
|
||||||
|
navigation2.screens/screens
|
||||||
(when config/quo-preview-enabled?
|
(when config/quo-preview-enabled?
|
||||||
quo.preview/screens)
|
quo.preview/screens)
|
||||||
(when config/quo-preview-enabled?
|
(when config/quo-preview-enabled?
|
||||||
quo.preview/main-screens)
|
quo.preview/main-screens)
|
||||||
(when config/quo-preview-enabled?
|
(when config/quo-preview-enabled?
|
||||||
quo2.preview/screens)
|
quo2.preview/screens)
|
||||||
(when config/quo-preview-enabled?
|
|
||||||
navigation2.screens/screens)
|
|
||||||
(when @config/new-ui-enabled?
|
(when @config/new-ui-enabled?
|
||||||
navigation2.screens/screen-overwrites)
|
navigation2.screens/screen-overwrites)
|
||||||
(when config/quo-preview-enabled?
|
(when config/quo-preview-enabled?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user