This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-12
Channels
- # bangalore-clj (1)
- # beginners (28)
- # boot (33)
- # chestnut (3)
- # cider (35)
- # cljs-dev (64)
- # cljsrn (16)
- # clojure (95)
- # clojure-android (6)
- # clojure-austin (1)
- # clojure-italy (5)
- # clojure-korea (1)
- # clojure-russia (55)
- # clojure-sg (1)
- # clojure-spec (25)
- # clojure-uk (57)
- # clojurescript (120)
- # code-reviews (7)
- # community-development (2)
- # core-async (3)
- # cursive (6)
- # data-science (3)
- # datascript (10)
- # datomic (12)
- # devcards (1)
- # emacs (9)
- # gsoc (7)
- # hoplon (18)
- # lumo (2)
- # off-topic (10)
- # om (24)
- # onyx (17)
- # pedestal (46)
- # powderkeg (1)
- # protorepl (7)
- # re-frame (31)
- # ring-swagger (34)
- # spacemacs (10)
- # specter (9)
- # sql (39)
- # unrepl (9)
- # untangled (3)
- # utah-clojurians (1)
ended up figuring it out on #cider. dumb mistake, left out the layer that includes company in spacemacs
@danieleneal I got React Navigation going with reagent: https://github.com/vikeri/re-navigate
using rum/re-natal and implementing a RN VirtualizedList
(def virtlist (partial create-element (.-VirtualizedList ReactNative)))
(defc list-item
[item]
<...>
)
(def t (atom nil))
(defcs some-list-test <
{:did-mount (fn[state]
(.scrollToEnd @t)
state)}
[]
(view {:flex 1}
(virtlist {:data [<...>]
:keyExtractor #(str "item::" %2)
:ref #(reset! t %)
:renderItem #(list-item %)})
))
Why does this not work?
1. @t
in the :did-mount
mixin is a VirtualizedList, so it's set properly (so I suppose)
2. the :did-mount
mixin function is called
3. (.scrollToEnd @t)
doesn't throw an error or exception and it is called
4. The list doesn't scroll <-- this is unexpected (to me)@mv, console.log
should work. Try react-native log-ios
(or log-android
) to see the simulator output
you can also check XCode's console window, if that's your thing
finally println
should print to the figwheel terminal as well, I think
@pesterhazy Thanks!
@mv, did you get it to work?
nobody got FlatList's or VirtualizedList's scrollTo...
methods working using re-natal/cljs?
How do I run "Set up a virtual device in AVD" as written in the re-natal repo. Do I need android studio?
no, just the android tools
@jeff.engebretsen ah, I see. thanks