:underlay-color for touchable-highlight component

This commit is contained in:
Roman Volosovskyi 2016-04-25 18:11:42 +03:00
parent 8f7e1d6aa5
commit a41db711d0
9 changed files with 13 additions and 11 deletions

View File

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

View File

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

View File

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

View File

@ -47,7 +47,8 @@
:top 7 :top 7
:right 4} :right 4}
:onPress (fn [] :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 [image {:source res/icon-close-gray
:style {:width 10 :style {:width 10
:height 10}}]]] :height 10}}]]]

View File

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

View File

@ -11,7 +11,8 @@
(defn chat-list-item [chat-obj navigator] (defn chat-list-item [chat-obj navigator]
[touchable-highlight {:on-press (fn [] [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 add [photo-path delivery-status new-messages-count online] values to chat-obj
;; TODO should chat-obj be clj-map? ;; TODO should chat-obj be clj-map?
[view {} [chat-list-item-inner-view (merge (js->clj chat-obj :keywordize-keys true) [view {} [chat-list-item-inner-view (merge (js->clj chat-obj :keywordize-keys true)

View File

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

View File

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

View File

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