This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-06
Channels
- # adventofcode (24)
- # aleph (1)
- # bangalore-clj (2)
- # beginners (196)
- # boot (148)
- # cider (18)
- # clara (83)
- # cljsrn (24)
- # clojure (210)
- # clojure-brasil (3)
- # clojure-china (1)
- # clojure-italy (11)
- # clojure-korea (8)
- # clojure-russia (82)
- # clojure-spec (115)
- # clojure-uk (130)
- # clojurescript (109)
- # core-async (7)
- # cryogen (1)
- # cursive (22)
- # datascript (11)
- # datomic (6)
- # devcards (2)
- # emacs (1)
- # garden (1)
- # hoplon (2)
- # incanter (1)
- # klipse (4)
- # luminus (4)
- # off-topic (89)
- # om (53)
- # onyx (78)
- # parinfer (9)
- # proton (3)
- # protorepl (20)
- # re-frame (107)
- # reagent (52)
- # rum (30)
- # spacemacs (1)
- # testing (3)
- # untangled (31)
- # vim (43)
- # yada (9)
@jorda0mega We’re just winging https://github.com/vikeri/re-navigate at the moment. Very simple setup. But ex-navigation seems promising for a more complete solution.
@jorda0mega: I’m having pretty good luck with react-router-native
. I like the url->route mapping mentality.
pretty easy to keep it in sync with re-frame too:
(defn routes []
(let [app-db-current-route (subscribe [:current-route])]
(r/create-class
{:component-did-mount
(fn []
(ocall nativeHistory "listen" #(let [routing-location (oget (ocall nativeHistory "getCurrentLocation") "pathname")]
(debug "ROUTING UPDATE:" routing-location)
(dispatch [:change-route routing-location]))))
:reagent-render
(fn []
(let [current-route @app-db-current-route
routing-location (aget (ocall nativeHistory "getCurrentLocation") "pathname")]
(debug "ROUTING RENDER:" current-route routing-location)
;; If the app-db route is different than the router, change it so they are the same
(when (not= current-route routing-location)
(ocall InteractionManager "runAfterInteractions" #(.replace nativeHistory current-route)))
;; App Routing
[:> Router {:history nativeHistory
:addressBar true}
[:> Route {:path "/login"
:component (r/reactify-component login/core)
:onSwipeBack #()
:onSwipeForward #()
:transition “vertical-card-stack”}]
…
@vikeri My app is using the meetup api and I need for the user to input an API key and store (preferably securely) in the app. Is there a relevant Android/iOS API for input/storage of such info? like a key ring or something similar.
I see, not sure. I know the DB Realm can do encryption. Another alternative is to encrypt the data before putting it in the AsyncStorage using a KDF if you have a password for opening the app. Or possibly use Settings (quite safe, but not if the device is rooted): https://facebook.github.io/react-native/docs/settings.html
@jorda0mega I've setup a minimal cljs-ex-navigation example several days before. https://github.com/exponent-contrib/cljs-ex-navigation
I cannot relate it to any recent changes and I think figwheel must have been stopped for a while. Reverting to previous commits that worked now throws the same error.
@mac Is react-native packager still running?
You can also press Debug JS Remotely
,
For debugging figwheel-bridge.js
, you can set debugEnabled
to true
on L2.
@tiensonqin I get "Unable to connect to remote debugger". Excuse my ignorance but what is L2?
Line 2
@mac What http://localhost:8081/debugger-ui displays?
@tiensonqin "React Native JS code runs inside this Chrome tab...." - I am now getting an error saying that ...goog/base.js' failed to load.
What’s in your target dir?
Is goog/base.js there?
If not, maybe you need to run lein figwheel
first.
@tiensonqin That did the trick. I have no idea how I ended in this state.
@tiensonqin thanks
@mac glad it works.