This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-09
Channels
- # aleph (9)
- # bangalore-clj (1)
- # beginners (3)
- # boot (58)
- # cider (19)
- # cljs-dev (5)
- # cljsrn (31)
- # clojure (35)
- # clojure-greece (1)
- # clojure-poland (4)
- # clojure-russia (1)
- # clojure-spec (65)
- # clojure-uk (1)
- # clojurescript (41)
- # data-science (2)
- # datascript (6)
- # devcards (3)
- # emacs (2)
- # hoplon (10)
- # liberator (3)
- # numerical-computing (1)
- # off-topic (1)
- # om (18)
- # onyx (17)
- # parinfer (1)
- # planck (1)
- # re-frame (13)
- # specter (7)
- # uncomplicate (1)
- # untangled (4)
- # vim (1)
- # yada (2)
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
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?
@pvinis depends from what you use. I'm use re-frame and my navigation happened in application state
@pvinis no, re-natal can generate project with re-frame + reagent, rum, or even om.
look at this https://github.com/savelichalex/Souptitle/blob/master/src/teach_by_friends/shared/ui.cljs#L86-L110
this is not use navigator
you can do push inside track!
I have example with navigator, somewhere in git history of this file)
can't find right now
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
@pvinis https://github.com/savelichalex/Souptitle/blob/161ffe75bf0bb1eae2f35f25334fe08b0b7c792b/src/teach_by_friends/shared/ui.cljs#L78-L103 sorry for bad code formatting)
smth like this https://github.com/savelichalex/Souptitle/blob/master/src/teach_by_friends/handlers.cljs#L153-L155
when app db is changed track!
will trigger
@pvinis another one app you can check with navigation https://github.com/madvas/catlantis
also last app use react-native-navigation
, look at this, I think it's better that NavigationIOS
@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).and it works faster (w/o stuttering) than just
(text-input {:value v :onTextChange on-change})
@misha, interesting. Can you clear the value by changing the value of an already mounted text-input?