cljsrn 2023-12-01

Hey guys! Could someone tell me, I set up a project by analogy with https://github.com/thheller/reagent-react-native Built successful - [:mobile] Build completed. (91 files, 0 compiled, 0 warnings, 1.35s) Metro running - BUNDLE ./index.js Simulator working - success Successfully launched the app on the simulator But I see only react-native demo: What is the problem? Also am I planning not to use expo, or is it a bad idea?

This is what you’re going to see until you edit the project and replace it with something different.

Re: expo, a lot of people like it, but you should be totally fine without it. Pro: it gives you a lot of stuff in pure JS (no native code) and lets you push updates without going through app stores, Con: if you need something it doesn’t provide in JS, you have to eject and go without it.

@joshmiller So, I should inject my compiled clojurescript code into App.tsx or something else?

Yes, one way or another. I’m not familiar with that particular template, but that’s what needs to happen for your cljs to get into the app.

I’m not sure, the README on that repo isn’t super-clear. If you want shadow + RN, you might be better off with this fuller/more up-to-date template: https://github.com/PEZ/rn-rf-shadow

It works, but it uses expo

Solved 😃 I replaced index.js with

import './app/index.js';
and add npm install create-react-class I found solution here - https://github.com/flexsurfer/ClojureRNProject/tree/master

👍 1