So @ps, I think you have what you need for the solution.
As you can see in my response here https://clojurians.slack.com/archives/C0E1SN0NM/p1610920769030000?thread_ts=1610907711.025500&cid=C0E1SN0NM and @olivergeorge’s example above, the renderItem
argument is a JS Object.
So you can't use (:name video)
or (:url video)
lookup like with a CLJ map.
You can use goog.object
like in theses examples or libraries like:
• cljs-oops https://github.com/binaryage/cljs-oops
• js-interop https://github.com/applied-science/js-interop
So in you case, you end up with a video-comp like that:
(ns your.ns
(:require [goog.object :as gobj])
(defn video-comp [video]
[:> View
[:> Video
{:style {:height 400
:width "100%"}
:controls true
:paused true
:source {:uri (gobj/get video "uri")}}]
[:> Text (gobj/get video "name")]])