This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # architecture (3)
- # aws (4)
- # beginners (100)
- # boot (14)
- # cider (59)
- # cljs-dev (1)
- # cljsrn (24)
- # clojure (53)
- # clojure-dev (58)
- # clojure-italy (2)
- # clojure-spec (1)
- # clojure-uk (25)
- # clojurescript (7)
- # cryogen (1)
- # cursive (1)
- # datomic (9)
- # dirac (9)
- # duct (3)
- # off-topic (52)
- # om-next (3)
- # onyx (42)
- # portkey (28)
- # re-frame (3)
- # reagent (11)
- # rum (3)
- # shadow-cljs (12)
- # specter (7)
- # tools-deps (18)
- # vim (1)
- # yada (4)
Hi, I’m trying to figure out what the pain factors would be in writing something that works both as a website and an app, with maximum code reuse (then both communicating with the same backend via an API.) Would something created with luminus+re-frame be portable to an iOS app?
@lady3janepl I think your best chance might be with something like https://github.com/necolas/react-native-web. Check out their glitch project to get a feel of it. Most likely all the cljsrn tooling would be useful to you. If so, please dont forget to write something about it in the cljsrn wiki 😉
(oof. I’m a backend person, the sheer amount of tooling required to get something with a simple gui these days is crazy…)
@lady3janepl is you just want simple, make a standard website and just display it with a webview in a native app. That is the simplest and fastest way to develop it. If you dont need anything special that would work
(my biggest reason for adding a mobile option is just-in-time data input: people are much more likely to have their phone on them “in the field” than wait until they’re home and log things retroactively)
@lady3janepl just go with a website in a webview. That would get you through the MVP. If it turns out well you can transform it into a react native app without much hassle, as all the logic remains.
True :) I was looking to remove as much handcrafting html as possible but yeah, for an MVP that’ll be offset by the cost of environment setup and learning.
What kind of a web view wrapper would you recommend? A lot of people mentioned phonegap, but after digging around it looks like there are alternatives.
Dont know 😄 . I used phonegap at it was ok. There are lots of alternatives out there … almost too many to be honest. So I would recommend you go to with a normal website and try to use the web apis that you have available. If you see that it is not enough then start looking around for more. Otherwise you would be overwhelm with options and decisions without knowing what you need
yeahhh the options-overwhelm is a thing 🙂 I will start from a thing as minimal as possible, for own use, and build from there I think. Thank you for showing me all the options and advice!
I'm looking at navigation options. Has anyone had good experiences with https://github.com/seantempesta/cljs-react-navigation
@olivergeorge yeah I am using it, but at a very basic level. I think others here have more complex set up so they can give you better info
I never tried pure react navigation. It gets pretty messy pretty fast because of all the interop. If you check the source code of cljs-react-navigation it is pretty much a thin wrapper with specs added, so it is pretty straightforward to use base on react navigation docs
There is some interop junk to get through, but it's a one time cost and everything on top can be none the wiser.