Fork me on GitHub

Has anyone tried implementing 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 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 maybe check it out if you haven't already


anyone managed to run clojurescript tests with Expo?


As soon as I touch code that refers to Expo I get:


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;;t=9m3s but I didn't find a way to run simple tests using clojurescript. I was planning to use to check the output of my components. Any advice on this?


@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!


what's the highest version pair people have had success with expo+reagent? expo 25 + reagent 0.7.0 seems to have some issues. loading fonts fails, something to do with new create-react-class in react 16 I think