move data-source to status-im.utils.listview ns (fixes externs generatoin)
This commit is contained in:
parent
4651c2c90d
commit
99147706b3
|
@ -5,6 +5,9 @@
|
|||
(.cloneWithRows ds (reduce (fn [ac el] (.push ac el) ac)
|
||||
(clj->js []) rows)))
|
||||
|
||||
(defmacro data-source [config]
|
||||
(js/ReactNative.ListView.DataSource. (clj->js config)))
|
||||
|
||||
(defn to-datasource [items]
|
||||
(clone-with-rows (data-source {:rowHasChanged not=}) items))
|
||||
|
||||
|
|
Loading…
Reference in New Issue