This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (130)
- # alternate-reality (2)
- # aws (20)
- # beginners (49)
- # boot (1)
- # braid-chat (18)
- # cljsrn (54)
- # clojars (1)
- # clojure (70)
- # clojure-art (1)
- # clojure-japan (21)
- # clojure-miami (2)
- # clojure-my (7)
- # clojure-russia (60)
- # clojurescript (75)
- # community-development (12)
- # core-matrix (7)
- # cursive (23)
- # datomic (31)
- # dirac (2)
- # dunaj (3)
- # dysphemism (5)
- # editors-rus (1)
- # emacs (22)
- # events (9)
- # funcool (56)
- # hoplon (63)
- # human (1)
- # jobs (9)
- # ldnclj (7)
- # lein-figwheel (21)
- # leiningen (1)
- # off-topic (2)
- # om (61)
- # onyx (20)
- # other-lisps (2)
- # portland-or (1)
- # proton (26)
- # re-frame (27)
- # reagent (16)
- # ring-swagger (30)
- # spacemacs (6)
- # yada (5)
Hey everyone! Have any of you gotten Figwheel working with js.React? I've already seen the great example of Figwheel with React Native here (https://github.com/decker405/figwheel-react-native)
It says react-native — is it possible to configure as react.js (WebView)? I want to have a web UI for consistency across platforms. Native UI is great performance-wise but appearance of course varies across platforms, whereas the DOM renders (more or less) in exactly the same way.
Ahh, you, my friend, are in the native channel Having said that, Artem has a really cool thing that can sync across all three. Check out the video he has on https://github.com/artemyarulin/om-next-cross-platform-template
I figured this channel would be the best way to go because even though I'm not looking for a native UI, I'm looking for cross-platform deployment... but yeah, maybe there's a better channel 😉
I don’t know if you can hook into a WebView running on a mobile device, if that’s what you mean.
Yeah, I've been reading about that. I don't mind learning a ton of new stuff — I'm just not in the group of people who wants or needs a native look and feel. Native performance is awesome, but I want a consistent visual appearance across platforms.
To my knowledge, there's not some abstraction that ensures cross-platform visual consistency of native components. Right?
om-next-cross-platform-template looks awesome! I'm actually using Reagent, but that doesn't seem to be a problem because it's likely a simple switch of dependencies and minor code refactoring. It seems that it's using react-native for mobile devices though, which is again something I probably don't want to do for the reasons I mentioned.
@alexandergunnarson: My guess is you’d want to render things in a WebView, but use conventional React with a Reagent binding.
Once you start using React Native, the consistency diverges and you start getting native look and especially feel (animations, gestures, etc.)
Like I said, I really enjoy the performance benefits of native but it's not a tradeoff I can make given the UI inconsistencies. I'm probably among the minority though
React Native is amazing though! If I ever have a need for native look and feel, it's the first thing I'll turn to.
So you were saying that you're not quite sure you can hook Figwheel into a WebView on a mobile device, correct? I might ask this on a different channel then, so as not to clog this channel up with non- React Native questions 😉
I bet you can… Figwheel just needs websocket support I believe. Might need a little hacking.
Right. I was shocked for a second haha... I was like that doesn't even make sense that WebView wouldn't have something as essential as that
Hmm... yeah I wonder if there are any existing repos for it... from what I can see there aren't
There's mobile + React Native + Figwheel, and mobile + ClojureScript REPL, but no mobile + WebView + Figwheel out there so far as I can see.
@alexandergunnarson: It might just work if you have your native app create a WebView and instruct it to open the URL that you’d normally hand-type into a web browser URL bar when using Figwheel.
I just need to use XCode, learn a bit of Swift, and set that all up so the WebView is created and goes straight to the page.
I was hoping to not have to go the manual route but if there's nothing out-of-the-box... that's how it'll have to be haha
I was originally thinking something like Cordova (or PhoneGap, same thing basically) might work, but it seems like it might not be tailor-fit to my situation.
Done. Got it solved really painlessly using Cordova in like 0.3 seconds. I don't know why I didn't do it earlier!
yeah Cordova is exactly for that purpose. Although IMHO it’s past and with RN i see almost no reason to start projects with that
the component is now compiled into the project and loaded by figwheel and what not, but how do I use it from cljs?
@jaen: Ha, ad looks awesome. Can I have the same but for the source code? Tired of writing the software 😄
actually yeah - I have the same problem. Usually when I design everything by myself the end result is amazing, but for some reason other people vomit from that :thinking_face:
maybe time to stop developing on that app for a while and get my ass on getting better in design