Fork me on GitHub
#cljsrn
<
2023-12-01
>
rende1120:12:16

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?

joshmiller22:12:41

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

joshmiller22:12:41

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.

rende1122:12:29

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

joshmiller22:12:04

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.

rende1122:12:27

But how?))

joshmiller22:12:12

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

rende1122:12:19

It works, but it uses expo

rende1112:12:51

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