turn off auto capitalization in url text inputs

This commit is contained in:
Roman Volosovskyi 2018-02-17 23:04:44 +08:00
parent dd83212eba
commit 7e4903826f
No known key found for this signature in database
GPG Key ID: 154EBFAC70C8CC3E
2 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,8 @@
(re-frame/dispatch [:navigate-to-clean :home])
(re-frame/dispatch [:open-browser {:url @url-text}]))
:placeholder (i18n/label :t/enter-url)
:auto-capitalize :none
:auto-correct false
:style styles/url-input}]]
[react/text {:style styles/list-title}
(i18n/label :t/selected-dapps)]

View File

@ -33,6 +33,8 @@
:on-submit-editing #(re-frame/dispatch [:update-browser (assoc browser :url @url-text)])
:auto-focus (not url)
:placeholder (i18n/label :t/enter-url)
:auto-capitalize :none
:auto-correct false
:default-value url
:style styles/url-input}]
;;TODO .reload doesn't work, implement later
@ -93,4 +95,4 @@
[react/touchable-highlight {:on-press #(.goForward @webview) :disabled (not can-go-forward?)
:style styles/forward-button}
[react/view (when (not can-go-forward?) {:opacity 0.4})
[vector-icons/icon :icons/arrow-right]]]]]))
[vector-icons/icon :icons/arrow-right]]]]]))