Fork me on GitHub
#cljsrn
<
2016-02-15
>
drapanjanas07:02:35

@seantempesta: Not sure if it's the same, but I saw smth like this when chrome tries to download source maps. Packager can not just serve them from fs. So, if you need source maps you can patch your local packager with re-natal enable-source-maps (this is not done by default anymore), or you can disable source maps from project.clj

leov21:02:14

I'm running https://github.com/alwx/luno-react-native, and did all the steps to launch figwheel from android from here - https://github.com/drapanjanas/re-natal

leov21:02:59

and well deployed android app on the phone says 'unable to download js bundle from the dev server' and something about 8081

leov21:02:11

despite adb reverse tcp:8081 tcp:8081

alwx21:02:32

adb reverse works only on android 5.0+

leov21:02:43

question: who is going to occupy 8081 - and it's going to happen on my local machine, not the phone, right? - is it lein figwheel android?

leov21:02:47

yup I have 5.1

leov21:02:10

I run lein figwheel android and it occupied only 3449

leov21:02:56

should I start watchman in addition to what's said in re-natal and luno-react-native?

drapanjanas21:02:17

@leov: 8081 is listened by React Native packager

leov21:02:09

it quits after react-native run-android finish compilation and running the activity on the phone

leov21:02:37

(so it's not in a daemon mode)

leov21:02:57

(I mean, react-native run-android quits)

drapanjanas21:02:42

react-native run-android should return command line, but should also spawn a packager

leov21:02:43

react-native start seems to do something

leov21:02:49

thanks!!!

leov21:02:03

it now says 'fetching JS bundle, please wait'

leov21:02:32

interesting. run-adroid in my case has not spawn the packager

drapanjanas21:02:40

are you on windows or linux?

leov21:02:07

ok. it works. linux / ubuntu 15.10 / android sdk 23.0.1 (and some others, not sure which one it picked)

leov21:02:32

java 1.7

drapanjanas21:02:31

yeah, on linux for some reason you have to run manually packager, it is also mentioned in readme

leov21:02:38

oops. sorry simple_smile

drapanjanas21:02:01

np simple_smile its hidden down below

leov21:02:07

luno looks nice.

drapanjanas21:02:51

yeah alwx did a great job

leov21:02:46

um. can I somehow attach react-native-desktop?

drapanjanas21:02:50

no clue, have not used that, yet

leov21:02:24

re-natal template is only for react-native apps? I should adapt it if I want to also have a web page, right?

drapanjanas21:02:47

re-natal is only for apps, there is another template for apps and web https://github.com/artemyarulin/ktoa

leov21:02:53

thank you!

drapanjanas21:02:42

np, have fun!

jurgen_photek23:02:51

here's a puzzler... using re-natal, how would a component refer to its own properties (i.e. this.props)? for a specific example, see the ios navigator in luno: https://github.com/alwx/luno-react-native/blob/master/src/luno/ios/core.cljs the normal reagent way or passing a map to a component and calling reagent.core/props doesn't seem to be the way, partly because of how the component is configured via the :initial-route and reactify-component. btw the property I'm after is the routes which is used for navigating to other views etc.