Fork me on GitHub
#cljsrn
<
2016-05-12
>
frank00:05:33

basic question with styling in RN: how do I get a view to occupy the whole viewport width/height?

frank00:05:02

nvm figured it out. position absolute it is

vikeri08:05:30

How do people do storage? Initially I just went with serializing the atom as edn and storing it in with async-storage as a string. But I ran in to some trouble with serializing goog.date.Date (which I’m getting help with in the #C03S1L9DN thread) so I just wonder what you guys are doing? Would be awesome with a library for this...

misha10:05:05

@vikeri datascript -> transit -> async storage

misha10:05:45

try replacing edn with transit. your goog.date.Date issue might go away

misha11:05:10

I tried, it didn't : ). need to implement transit handlers

misha11:05:09

=> d
#inst "2016-05-11T"
=> dw
"[\"~#Date\",\"2016-05-12\"]"
=> dr
#inst "2016-05-11T"

misha11:05:26

w.sandbox=> (time (dotimes [n 100000] (pr-str d)))
"Elapsed time: 1076.305000 msecs"

=> (def w (t/writer :json {:handlers writers}))
=> (time (dotimes [n 100000] (t/write w d)))
"Elapsed time: 587.750000 msecs"