Fork me on GitHub
#cljsrn
<
2016-10-09
>
pvinis07:10:40

in NavigatorIOS, is there a way to get the height of the titlebar? so i can have the components with some offset from the top

pvinis09:10:24

on re-natal, how can i push to a navigator in a cljs way? i can do (.push nav #js{:title “bla” :component bla}). is there a way to make it more cljs-like?

savelichalex09:10:08

@pvinis depends from what you use. I'm use re-frame and my navigation happened in application state

pvinis09:10:28

ok, how is that?

pvinis09:10:41

re-natal uses re-frame (i think?)

savelichalex09:10:52

@pvinis no, re-natal can generate project with re-frame + reagent, rum, or even om.

savelichalex09:10:18

this is not use navigator

pvinis09:10:36

so you are not using navigatorios or anything?

savelichalex09:10:39

you can do push inside track!

savelichalex09:10:18

I have example with navigator, somewhere in git history of this file)

pvinis09:10:37

alright i will check it

savelichalex09:10:42

can't find right now

pvinis09:10:30

ugh, i wanna use cljs with rn but its so many layers, that if i have a problem i have no idea how to try and find which layer has the problem or im not unserstanding

pvinis09:10:35

so in this case, how would you push?

pvinis09:10:40

you have navigator

savelichalex09:10:57

when app db is changed track! will trigger

savelichalex09:10:35

@pvinis another one app you can check with navigation https://github.com/madvas/catlantis

pvinis09:10:15

i will look into both

savelichalex09:10:23

also last app use react-native-navigation, look at this, I think it's better that NavigationIOS

misha11:10:15

@pesterhazy what i basically have right now is:

(def state (atom ""))
(defn on-change [txt]
  (reset! state txt))

(defc input-wrapper [v on-change]
  (text-input {:defaultValue v :onTextChange on-change})

(defc page []
  (input-wrapper @state on-change))
(rum pseudocode).

misha11:10:48

and it works faster (w/o stuttering) than just

(text-input {:value v :onTextChange on-change})

misha11:10:39

which is counterintuitive to me

pesterhazy12:10:01

@misha, interesting. Can you clear the value by changing the value of an already mounted text-input?

misha12:10:07

Not sure, but I did not see any issues with value changes and clear buttons (x) yet