This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-10
Channels
- # beginners (35)
- # cider (165)
- # cljsrn (18)
- # clojars (1)
- # clojure (141)
- # clojure-greece (2)
- # clojure-italy (11)
- # clojure-nl (1)
- # clojure-spec (21)
- # clojure-uk (89)
- # clojurescript (56)
- # community-development (3)
- # cursive (3)
- # data-science (55)
- # datomic (13)
- # emacs (12)
- # fulcro (31)
- # graphql (6)
- # jobs-discuss (35)
- # lein-figwheel (10)
- # mount (2)
- # off-topic (3)
- # onyx (22)
- # parinfer (4)
- # portkey (7)
- # re-frame (29)
- # ring-swagger (4)
- # shadow-cljs (37)
- # specter (9)
- # sql (30)
- # tools-deps (15)
- # vim (2)
- # yada (17)
I just came across this in the status-im source code. Made me think of you...
https://github.com/status-im/status-react/commit/811e73d34b3c624834e9e0f7cf3c3340067a55cc
Tell me if you have success. I'd like to add it to https://confluence.condense.com.au/display/IZ/Iteration+Zero if it's reliable.
@olivergeorge Hi, yes. I built a sample app using just a clojure cli script without dependency needs of re-natal and leiningen. Please check it out https://github.com/psdp/cljs-simple-rn-app
But I found some little problems with 2 RN libraries used for the sample app - react-navigation
, react-native-material-ui
.
1. react-navigation
current route is not preserved when figwheel is enabled during development, so every time I edit and save a file, current route is reset to the default route.
2. react-native-material-ui
vector icons not showing.
feedback welcome 🙂
@olivergeorge At status we are in the process of building a library to replace re-natal
. We plan to open it to the community. (@psdp is working on it?)
Feel free to shim in ! https://github.com/status-im/status-react/pull/4169
Thanks @psdp I look forward to checking that out.
Very cool
I tried this and it worked https://github.com/devfd/react-native-workers Also, seen this https://github.com/fabriciovergal/react-native-workers
https://github.com/seantempesta/cljsrn-re-frame-workers/tree/master/examples/worker-test
Did you try any of the existing non-cljs solutions already @clojurians558? I’m talking about these: https://github.com/jamesisaac/react-native-background-task https://github.com/vikeri/react-native-background-job and this blog post: https://hackernoon.com/easy-os-background-tasks-in-react-native-bc4476c48b8a
@dotemacs no I have not. Thanks. Have you seen any open source clojurescript projects making use of them ?
@clojurians558 well, @vikeri is the author of one of them and he does ClojureScript...
@clojurians558 @dotemacs Yep, we’re using https://github.com/vikeri/react-native-background-job with clojurescript (surprise)
@psdp For navigation, you need to save your navigation state somewhere and load it on init to preserve state between reloads
@psdp For your icons, you might need to run react-native link
to have the vector assets copied into your bundle