Fork me on GitHub
#cljsrn
<
2016-03-28
>
michaelr13:03:04

how could i use this in cljs? import { ListView } from 'realm/react-native';

michaelr15:03:52

to answer my question: re-natal use-component realm/react-native and then (set! js/RealmReactNative (js/require "realm/react-native"))

drapanjanas16:03:47

@michaelr: glad you worked this out, but there might be an issue with global assignment when you run your app with offline bundle like this https://github.com/drapanjanas/re-natal/issues/32 Is it not working with local var? (def RealmReactNative (js/require "realm/react-native”))

michaelr16:03:50

drapanjanas: hi

michaelr16:03:55

interesting

michaelr16:03:34

i'll check that issue, not sure if i tried using local var, so far just followed the (set!) convention

michaelr16:03:38

thanks for the suggestion

drapanjanas16:03:00

Yeah, that issue popped up yesterday, I still have no clue why suddenly global assignment of React started to crash

drapanjanas16:03:21

React variable is a bit special, because reagent needs that as far as I remember. But other stuff should not need to be global

michaelr16:03:53

interesting

michaelr16:03:03

will use window everywhere just in case