This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-20
Channels
- # architecture (25)
- # beginners (68)
- # cider (10)
- # clara (3)
- # cljs-dev (90)
- # cljsrn (16)
- # clojure (132)
- # clojure-austin (7)
- # clojure-berlin (3)
- # clojure-czech (1)
- # clojure-dusseldorf (1)
- # clojure-greece (5)
- # clojure-italy (39)
- # clojure-spec (5)
- # clojure-uk (78)
- # clojured (2)
- # clojurescript (92)
- # community-development (6)
- # cursive (7)
- # data-science (1)
- # datascript (14)
- # datomic (32)
- # duct (8)
- # emacs (5)
- # figwheel (3)
- # fulcro (47)
- # hoplon (12)
- # jobs (10)
- # luminus (16)
- # lumo (5)
- # off-topic (1)
- # onyx (2)
- # parinfer (47)
- # pedestal (6)
- # re-frame (10)
- # reagent (2)
- # reitit (61)
- # ring (8)
- # ring-swagger (16)
- # shadow-cljs (116)
- # sql (17)
- # utah-clojurians (2)
- # vim (1)
Has anyone tried implementing https://wix.github.io/react-native-navigation/ using re-natal? I seem to be running into issues with it, but I'm very new to all this so it might be user error... I was looking at https://github.com/madvas/catlantis/blob/master/src/catlantis/shared/navigation.cljs for reference... but this seems like a lot of overhead, and I was hoping for a more simple implementation for a tab based app.
@kara I’ve done it, and it can be a lot simpler than that
I’m looking to see if I have a public example somewhere…
Hm, doesn’t look like I do, but let me know if it’s still something you’re trying to get running and I can adapt some example code from a private repo to show you. I ran into the same thing when I started with it, that that was way too intense for what I needed, but you can use react-native-navigation in cljs with like a dozen lines of code instead.
If you wouldn’t mind putting together a basic example and could share it in a public repo I’d really appreciate it... I felt like “a dozen lines of code” should be closer to what I need, but I’m also still learning cljs so I’m still tripping over syntax 😐 I’d really prefer the native integration if I can vs a pure js solution like react navigation @U0E1JV8GK
@kara I've had decent success with https://github.com/seantempesta/cljs-react-navigation maybe check it out if you haven't already
Hey folks
anyone managed to run clojurescript tests with Expo?
As soon as I touch code that refers to Expo I get:
/Users/.../example/node_modules/expo/src/Expo.js:3
import './Logs'; // set up Expo logging infra
^^^^^^
SyntaxError: Unexpected token import
My understanding is that I might need to set up preprocessing but do I need to preprocess the entire node_modules folder?
@vikeri I saw your talk and the part about testing https://www.youtube.com/watch?v=6IYm34nDL64&feature=youtu.be&t=9m3s but I didn't find a way to run simple tests using clojurescript. I was planning to use https://github.com/facebook/react/tree/master/packages/react-test-renderer to check the output of my components. Any advice on this?
Something as simple as this but using React Native components https://github.com/frankiesardo/expo.deps.edn/blob/master/test/app/core_test.cljs
@frankie what we've done is to mock out all rn specific things and then just run our tests in node. Pretty convoluted setup but very nice once it's working. Wrote some UI tests in the beginning but since using re-frame we haven't had a single UI issue the past 1,5 years so not writing any UI tests anymore. Just testing the business logic with unit tests and generative spec tests
Makes sense, thanks!