:underlay-color for touchable-highlight component

Former-commit-id: a41db711d0
This commit is contained in:
Roman Volosovskyi 2016-04-25 18:11:42 +03:00
parent 248f80df40
commit 2db8ad5c15
9 changed files with 13 additions and 11 deletions

View File

@ -5,7 +5,6 @@
view
text
image
touchable-highlight
navigator
toolbar-android]]
[syng-im.components.realm :refer [list-view]]

View File

@ -5,8 +5,7 @@
view
image
text
text-input
touchable-highlight]]
text-input]]
[syng-im.components.styles :refer [color-white]]
[syng-im.components.chat.plain-message-input :refer [plain-message-input-view]]
[syng-im.components.chat.input.simple-command :refer [simple-command-input-view]]

View File

@ -82,7 +82,8 @@
:width 15
:height 15}}]]]
[touchable-highlight {:on-press (fn []
(cancel-command-input))}
(cancel-command-input))
:underlay-color :transparent}
[view {:style {:marginTop 10
:marginRight 10
:width 36

View File

@ -47,7 +47,8 @@
:top 7
:right 4}
:onPress (fn []
(cancel-command-input chat-id staged-command))}
(cancel-command-input chat-id staged-command))
:underlay-color :transparent}
[image {:source res/icon-close-gray
:style {:width 10
:height 10}}]]]

View File

@ -21,7 +21,8 @@
(defn suggestion-list-item [suggestion]
[touchable-highlight {:onPress (fn []
(set-command-input (keyword (:command suggestion))))}
(set-command-input (keyword (:command suggestion))))
:underlay-color :transparent}
[view {:style {:flexDirection "row"
:marginVertical 1
:marginHorizontal 0

View File

@ -11,7 +11,8 @@
(defn chat-list-item [chat-obj navigator]
[touchable-highlight {:on-press (fn []
(dispatch [:show-chat (aget chat-obj "chat-id") navigator :push]))}
(dispatch [:show-chat (aget chat-obj "chat-id") navigator :push]))
:underlay-color :transparent}
;; TODO add [photo-path delivery-status new-messages-count online] values to chat-obj
;; TODO should chat-obj be clj-map?
[view {} [chat-list-item-inner-view (merge (js->clj chat-obj :keywordize-keys true)

View File

@ -4,7 +4,6 @@
view
text
image
touchable-highlight
navigator
toolbar-android]]
[syng-im.components.realm :refer [list-view]]

View File

@ -81,8 +81,8 @@
:fontSize 14
:lineHeight 20}}
"Members"]
[touchable-highlight {:on-press (fn []
)}
[touchable-highlight {:on-press (fn [])
:underlay-color :transparent}
[view {:style {:flexDirection "row"
:marginBottom 16}}
[image {:style {:marginVertical 19

View File

@ -10,5 +10,6 @@
(defn contact-view [{:keys [navigator contact]}]
(let [{:keys [whisper-identity]} contact]
[touchable-highlight {:onPress (fn []
(show-chat navigator whisper-identity))}
(show-chat navigator whisper-identity))
:underlay-color :transparent}
[view {} [contact-inner-view contact]]]))