File tree 5 files changed +16
-12
lines changed
quo/components/inputs/input
5 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 55
55
56
56
(def ^:private custom-props
57
57
" Custom properties that must be removed from properties map passed to InputText."
58
- [:type :blur? :theme : error? :right-icon :left-icon :disabled? :small? :button
58
+ [:type :blur? :error? :right-icon :left-icon :disabled? :small? :button
59
59
:label :char-limit :on-char-limit-reach :icon-name :multiline? :on-focus :on-blur
60
60
:container-style ])
61
61
62
62
(defn- base-input
63
- [{:keys [blur? theme error? right-icon left-icon disabled? small? button
63
+ [{:keys [blur? error? right-icon left-icon disabled? small? button
64
64
label char-limit multiline? clearable? on-focus on-blur container-style
65
65
on-change-text on-char-limit-reach weight default-value ]
66
66
:as props}]
67
- (let [[status set-status] (rn/use-state :default )
67
+ (let [theme (quo.theme/use-theme-value )
68
+ [status set-status] (rn/use-state :default )
68
69
internal-on-focus (rn/use-callback #(set-status :focus ))
69
70
internal-on-blur (rn/use-callback #(set-status :default ))
70
71
[multiple-lines?
Original file line number Diff line number Diff line change 25
25
26
26
(defn image
27
27
[{:keys [source] :as props}]
28
- [image-native
29
- (if (string? source)
30
- (assoc props :source {:uri source})
31
- props)])
28
+ (let [props (cond-> props
29
+ platform/ios?
30
+ (dissoc :resize-method )
31
+ (and (:style props) platform/ios?)
32
+ (update :style dissoc :resize-method ))]
33
+ [image-native
34
+ (if (string? source)
35
+ (assoc props :source {:uri source})
36
+ props)]))
32
37
33
38
(defn image-get-size
34
39
[uri]
Original file line number Diff line number Diff line change 44
44
[rn/view {:style {:gap 22 }}
45
45
[quo/text-combinations {:title (i18n/label :t/bio )}]
46
46
[quo/input
47
- {:theme :dark
48
- :blur? true
47
+ {:blur? true
49
48
:multiline? true
50
49
:error? (not (string/blank? @error-msg))
51
50
:container-style {:margin-bottom -11 }
Original file line number Diff line number Diff line change 45
45
[rn/view {:style {:gap 22 }}
46
46
[quo/text-combinations {:title (i18n/label :t/name )}]
47
47
[quo/input
48
- {:theme :dark
49
- :blur? true
48
+ {:blur? true
50
49
:error? (not (string/blank? @error-msg))
51
50
:container-style {:margin-bottom -11 }
52
51
:default-value @full-name
Original file line number Diff line number Diff line change 130
130
[quo/divider-label {:tight? false } (i18n/label :t/have-a-sync-code? )]
131
131
[quo/action-drawer
132
132
[[{:icon :i/scan
133
- :on-press #(rf/dispatch [:navigate-to :scan-sync-code-page ])
133
+ :on-press #(rf/dispatch [:open-modal :scan-sync-code-page ])
134
134
:label (i18n/label :t/scan-or-enter-sync-code )}]]]]]])))
You can’t perform that action at this time.
0 commit comments