This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # architecture (1)
- # aws (23)
- # beginners (13)
- # boot (18)
- # cider (5)
- # clara (1)
- # cljs-dev (22)
- # cljsjs (9)
- # cljsrn (28)
- # clojure (120)
- # clojure-canada (12)
- # clojure-dev (6)
- # clojure-italy (4)
- # clojure-korea (1)
- # clojure-russia (18)
- # clojure-sg (8)
- # clojure-spec (45)
- # clojure-uk (12)
- # clojurescript (240)
- # component (4)
- # cursive (17)
- # datomic (91)
- # editors-rus (4)
- # figwheel (2)
- # flambo (6)
- # hoplon (163)
- # instaparse (6)
- # jobs (1)
- # leiningen (2)
- # luminus (5)
- # om (22)
- # om-next (2)
- # onyx (35)
- # perun (15)
- # play-clj (1)
- # protorepl (4)
- # re-frame (106)
- # reagent (4)
- # ring (106)
- # schema (1)
- # spacemacs (17)
- # untangled (40)
- # yada (14)
@doglooksgood, tbh I haven't done that yet for android
it should be straightforward though
for iOS you add the bundle.js to the app bundle
I'm sure it's just a matter of slightly poking the gradle configuration
maybe this is a good starting point? https://facebook.github.io/react-native/docs/signed-apk-android.html
@doglooksgood let me know if you make progress on this, I'll need it in a week too
@doglooksgood I did this in
project.ext.react = [ entryFile: file("../../index.dist.js"), ] apply from: "../../node_modules/react-native/react.gradle”
And then I did this in
'use strict'; global.ReactDOM = require('react-native'); require('./dist/dist/main.js'); my-ns.core.main();
@pesterhazy: re: cookbook, thanks for the PR!
I was thinking of putting one up for Navigator
using is a bit tricky because of the js interop
also because it's conceptually borked
That's not a bad idea at all... I'd also like to include @vikeri's and @weltan's examples.
You can see the issue I've opened on weltan's here: https://github.com/weltan/navigation/issues/1. We have to use JS to access the re-frame database - not sure if that's the part you're calling conceptually borked, but I sure think it is! 😵
Really like the idea of a cookbook @coyotespike, and happy to have my repo in there, let me know if you’d like a PR, or feel free to modify the example too and stick it in there yourself. I agree that testing is important: I spend a huge amount of time finding “recent” examples that work in the most recent iteration of RN. What are you thoughts for the cookbook on Android vs. iOS support?
Thanks @weltan! If you have time, you could drop it it in a folder and make a PR. I'm happy to write up a tutorial explaining how it works with re-frame.
(I have already taken the liberty of adding you and vikeri as contributors, as whether or not your code winds up in there I thought you both deserved credit for figuring it out!)
vikeri deserves all the credit - never would have figured out how to even use Experimental without his code, heh. Like pester says, it’s super borked.
For Android vs. iOS - just going off the top of my head here. Support for both would be optimal, obviously, OTOH if someone's only developing for one platform and doesn't have time to test on the other, I'd rather have the example. Someone else can adapt for the other platform, and hopefully contribute the adaptation. Thoughts?
Maybe just navigator. If we have multiple examples they can all go in there, and then we could move yours into a folder called scenes within navigator.
For testing on iOS I recommend Travis - it’s free for open source projects and especially now when latest images with xcode has JVM already, so it’s a matter of
brew install leiningen && npm install for setting up environment
and it should work for Android as well, although I haven’t tried
oh nice, I'll try to add that!