mirror of
https://github.com/status-im/status-react.git
synced 2025-01-12 03:54:32 +00:00
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…
x
Reference in New Issue
Block a user