Fork me on GitHub
#cljsrn
<
2017-05-12
>
nikki05:05:52

@benny is it going over figwheel

nikki05:05:56

Does normal eval'ing work

benny05:05:27

ended up figuring it out on #cider. dumb mistake, left out the layer that includes company in spacemacs

benny05:05:37

thanks though @nikki

vikeri06:05:42

@danieleneal I got React Navigation going with reagent: https://github.com/vikeri/re-navigate

kurt-o-sys07:05:05

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)

pesterhazy09:05:47

@mv, console.log should work. Try react-native log-ios (or log-android) to see the simulator output

pesterhazy09:05:43

you can also check XCode's console window, if that's your thing

pesterhazy09:05:05

finally println should print to the figwheel terminal as well, I think

pesterhazy18:05:40

@mv, did you get it to work?

kurt-o-sys20:05:48

nobody got FlatList's or VirtualizedList's scrollTo... methods working using re-natal/cljs?

urbank21:05:27

How do I run "Set up a virtual device in AVD" as written in the re-natal repo. Do I need android studio?

jeff.engebretsen21:05:15

no, just the android tools