cljsrn

rende11 2023-12-01T20:48:16.406749Z

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?

joshmiller 2023-12-01T22:26:41.545019Z

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

joshmiller 2023-12-01T22:27:41.982869Z

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.

rende11 2023-12-01T22:30:29.774329Z

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

joshmiller 2023-12-01T22:34:04.475749Z

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.

rende11 2023-12-01T22:43:27.065499Z

But how?))

joshmiller 2023-12-01T22:47:12.437589Z

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

rende11 2023-12-01T22:55:19.899819Z

It works, but it uses expo

rende11 2023-12-02T12:13:51.888739Z

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