This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-20
Channels
- # bangalore-clj (1)
- # beginners (145)
- # boot (8)
- # braid-chat (2)
- # capetown (2)
- # cider (27)
- # cljs-dev (232)
- # cljsrn (30)
- # clojure (223)
- # clojure-boston (1)
- # clojure-dusseldorf (2)
- # clojure-greece (1)
- # clojure-italy (21)
- # clojure-russia (16)
- # clojure-sanfrancisco (13)
- # clojure-spec (33)
- # clojure-uk (56)
- # clojurescript (165)
- # core-async (16)
- # core-logic (5)
- # cursive (14)
- # data-science (2)
- # datavis (2)
- # datomic (49)
- # duct (15)
- # editors (5)
- # emacs (6)
- # fulcro (11)
- # graphql (11)
- # hoplon (8)
- # jobs (4)
- # jobs-discuss (82)
- # jobs-rus (7)
- # leiningen (4)
- # luminus (5)
- # off-topic (90)
- # om (7)
- # om-next (1)
- # parinfer (67)
- # pedestal (34)
- # portkey (46)
- # re-frame (12)
- # reagent (4)
- # reitit (3)
- # remote-jobs (1)
- # ring-swagger (8)
- # shadow-cljs (13)
- # spacemacs (18)
- # specter (6)
- # sql (5)
- # tools-deps (4)
- # unrepl (40)
- # yada (26)
Has anyone used React Native for Web?
@grounded_sage yup it's great
I feel like a total noob asking. But how can I use it in Cljs?
I use the double bundle approach: https://github.com/pesterhazy/presumably/blob/master/posts/double-bundle.md
I'm trying to require it into a bare bones Boot build and I can't seem to figure out how to get it to work.
ok will read
Have you used it successfully inside of cljs build? @pesterhazy
it has the virtue that it will work (because it uses the code path that tens of thousands of other programmers users)
what do you mean by cljs build?
Like used it successfully from cljs?
yes of course! Works great
Awesome. It looks like a fantastic project. Was surprised to not see a blog about it 😮
I bracket the whole npm-deps logic and just use webpack to build a 2nd bundle
and then use js/ReactNativeWeb or whaterver; problem solved 🙂
I have a twin project that works on RN and RNW with (almost) no code changes
pretty magical
I mean it's not a fantastic interface for the web (with all the TouchableOpacity) but it's great for a number of use cases (like testing)
Yes I am curious as to your experience with it? Think it's the way forward? I've watched a couple of talks and am pretty convinced and wanted to give it a go.
I thought I would just be able to dive in but got a bit stuck. Kind of glad to find that it's still a hairy problem with NPM dependencies and it's not just me. But at the same time I kind of wish it all worked without needing Webpack 😛
@pesterhazy are you using all inline styles? Or StyleSheet.create
?
only inline styles
honestly not sure what the point of StyleSheet.create is
(maybe I'm missing something there)
one cool thing about RNW is that you can just mix in regular React components
also it works without issues with Reagent
I'm particularly interested in the atomic styles https://github.com/necolas/react-native-web/blob/master/website/guides/style.md#implementation-details I was attempting some of this a while ago with my server side rendered / SPA hybrid websites I built in Rum. But got tripped up with all the macros and JVM + Google Closure build pipelines mangling the classnames.
We recently launched our website, promoting our cljsrn app! https://okletsplay.com/