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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue