This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-27
Channels
- # alda (21)
- # announcements (7)
- # beginners (70)
- # boot (95)
- # braid-chat (28)
- # bristol-clojurians (2)
- # cider (22)
- # clara (4)
- # cljsjs (13)
- # cljsrn (40)
- # clojure (93)
- # clojure-argentina (1)
- # clojure-art (1)
- # clojure-miami (3)
- # clojure-norway (1)
- # clojure-portugal (2)
- # clojure-russia (39)
- # clojure-sg (3)
- # clojurescript (25)
- # clojurian-chat-app (4)
- # community-development (5)
- # conf-proposals (20)
- # cursive (48)
- # datomic (39)
- # devcards (5)
- # dirac (4)
- # editors (2)
- # events (11)
- # funcool (65)
- # hoplon (95)
- # jobs (12)
- # ldnclj (4)
- # lein-figwheel (2)
- # leiningen (1)
- # om (311)
- # onyx (20)
- # philosophy (4)
- # proton (41)
- # re-frame (83)
- # reagent (49)
- # ring-swagger (3)
- # spacemacs (8)
- # yada (5)
Hello everybody. I can't run my Android APK. I use re-natal. I've succesfully created release APK-file (lein prod-build, and everything from there: https://facebook.github.io/react-native/docs/signed-apk-android.html#content), but I see this error when I start my application
that probably means that the javascript wasn't loaded or threw an exception
it didn't get to the point where it registers the application in react
is the problem due to advanced compilation (google closure)}
In re-natal project 'lein prod-build' compiles in mode :simple
I admit have not tried the whole way building APK, but strange it does not work. Need to try it...
How do you register application? registerRunnable? Latest re-natal generates code which use registerComponent. Same way as in normal JS examples, so with latest re-natal you have better chances
my init metod in android.core looks this way now:
(defn ^:export init []
(dispatch-sync [:initialize-db])
(fn []
(.registerRunnable ui/app-registry "DealsChecker" #(mount-root))))
with latest re-natal it looks smth like
(defn init []
(dispatch-sync [:initialize-db])
(.registerComponent ui/app-registry "luno" #(r/reactify-component app-root)))
which should be analogous to what they do in JS ReactNative:
AppRegistry.registerComponent('MoviesApp', () => MoviesApp);
but, do not know if this is somehow related
@alwx, doesn't that just defined a fn without calling it?
@alwx, I'd guess that's the problem
just remove the (fn [] )
I've pushed my changes to Frappe. It works much better now, I promise
https://github.com/niftylettuce/frappe
you're welcome
Please run re-natal upgrade
Also please check the release notes, for versions of re-natal in between. There might be some manual steps needed
For example require-img macro was removed. Now normal js/require should be used for images
Which version of react-natal should be used 0.17.0 gives erros but 0.4.4 works fine, but 0.4.4 doesn't support react-native-material-design.
I get errors like RCTVibration and RCTAdSupport compilation errors
Official react-native set up guide says that you need xcode 7.0 or higher. Maybe the problem
will update and try out
Luno (https://github.com/alwx/luno-react-native) has been updated — now it uses the latest version of re-natal and contains detailed instructions of how to build it and run properly. Thanks @drapanjanas for PR. I've also improved it a bit, and you may say thanks to me, too :) Hope you will find it useful, guys!
@alwx, just pulled and have it working locally now!
@jurgen_photek: cool. congratulations!
Does the react developer tools for chrome plugin work with clojurescript? I can’t get the tab to show up during debugging.