This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-01
Channels
- # adventofcode (170)
- # announcements (3)
- # babashka (1)
- # beginners (25)
- # cherry (1)
- # cider (3)
- # clj-kondo (5)
- # cljsrn (9)
- # clojure (27)
- # clojure-art (2)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-sweden (2)
- # clojure-uk (5)
- # code-reviews (12)
- # component (8)
- # conjure (1)
- # data-science (2)
- # hyperfiddle (6)
- # malli (5)
- # off-topic (65)
- # overtone (34)
- # polylith (3)
- # re-frame (2)
- # reagent (2)
- # releases (3)
- # rum (1)
- # shadow-cljs (2)
- # slack-help (8)
- # sql (8)
- # squint (100)
- # thejaloniki (3)
- # tools-build (16)
- # vim (7)
- # yamlscript (1)
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.
@U0E1JV8GK 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
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/masterSolved 😃
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