avoid nested touchable highlight
it seems like the nested touchable highlight is delaying the recomputation of subscriptions
This commit is contained in:
parent
bf5416b629
commit
0dbcfab2e6
|
@ -10,7 +10,7 @@
|
||||||
[{:keys [on-value-change checked? accessibility-label
|
[{:keys [on-value-change checked? accessibility-label
|
||||||
disabled? style icon-style]
|
disabled? style icon-style]
|
||||||
:or {accessibility-label :checkbox}}]
|
:or {accessibility-label :checkbox}}]
|
||||||
[react/touchable-highlight
|
[(if on-value-change react/touchable-highlight react/view)
|
||||||
(merge {:style (merge
|
(merge {:style (merge
|
||||||
styles/wrapper
|
styles/wrapper
|
||||||
style)
|
style)
|
||||||
|
@ -21,4 +21,4 @@
|
||||||
[icons/tiny-icon
|
[icons/tiny-icon
|
||||||
:tiny-icons/tiny-check {:container-style (styles/icon-check-container true)
|
:tiny-icons/tiny-check {:container-style (styles/icon-check-container true)
|
||||||
:color colors/white}]
|
:color colors/white}]
|
||||||
[react/view {:style (styles/icon-check-container false)}])])
|
[react/view {:style (styles/icon-check-container false)}])])
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
{:on-long-press on-long-press}))
|
{:on-long-press on-long-press}))
|
||||||
(conj item
|
(conj item
|
||||||
[react/view {:style (merge style styles/item-checkbox)}
|
[react/view {:style (merge style styles/item-checkbox)}
|
||||||
[checkbox/checkbox props]])])
|
[checkbox/checkbox (dissoc props :on-value-change)]])])
|
||||||
|
|
||||||
;;TODO DEPRECATED, use status-im.ui.components.list-item.views
|
;;TODO DEPRECATED, use status-im.ui.components.list-item.views
|
||||||
(defn list-item-with-radio-button
|
(defn list-item-with-radio-button
|
||||||
|
@ -323,4 +323,4 @@
|
||||||
[react/view (merge styles/list-with-label-wrapper style)
|
[react/view (merge styles/list-with-label-wrapper style)
|
||||||
[react/text {:style styles/label}
|
[react/text {:style styles/label}
|
||||||
label]
|
label]
|
||||||
list])
|
list])
|
||||||
|
|
Loading…
Reference in New Issue