rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
mattly 2018-07-06T15:47:56.000262Z

I'm building a react native app with Rum, and using PanResponder to handle gesture input. I create a PR at component-will-mount time and assign it to the component's state, but one of the callbacks needs to access the current props of the component. Is there an easy way to get that or should I resign myself to doing something like this: (-> state :rum/react-component .-props js->clj (get ":rum/initial-state") :rum/args first)

2018-07-06T20:06:08.000242Z

I think js->clj is an overkill here. Just use JS property accessor (gobj/get or smth like that)

2018-07-06T20:06:55.000222Z

but I don’t understand, you need to get to the rum state from rum component, why go all this way around? state is already passed into callbacks?

mattly 2018-07-06T20:50:12.000195Z

it's not a react component callback, it's a PanResponder callback

mattly 2018-07-06T20:50:45.000217Z

PanResponder is a RN API for dealing with gestures

mattly 2018-07-06T20:51:11.000016Z

so you can use it alongside a component for doing stuff like drag and drop