cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
2020-04-23T14:30:23.277900Z

I have a little trouble getting the minimal example on https://reactnavigation.org/docs/tab-based-navigation to work with krell. Maybe it's just handling of node_modules and making them accessible to Clojurescript. I'd be wonderful if someone could show me how to do it in the context of krell. I must be missing something obvious...

dotemacs 2020-04-23T14:34:28.280300Z

@axel.schuessler thatโ€™s a bit of a open question, there could be so many details there. In any case, this is a good example on how to get react-navigation going. It is set up with shadow-cljs, but once you require the node packages Iโ€™d say that the rest should be pretty much the same with krell. Have a look: https://github.com/eihli/cljs-react-native-starter/blob/master/src/example/core.cljs

Shako Farhad 2020-04-23T14:55:40.281900Z

I have a question guys: Why don't we just use react native's modals for navigating smoothly between views? I mean, why can't the application just be a single paged one instead of using stacks and having several views? ๐Ÿ˜ฎ

dotemacs 2020-04-23T14:57:07.282700Z

Well isnโ€™t that up your requirements? You can navigate the way you think it makes most sense for you & your potential users.

Shako Farhad 2020-04-23T15:19:10.283400Z

I see. I just thought maybe the community had figured something out that I didn't know. ๐Ÿ˜ฎ

Shako Farhad 2020-04-23T15:20:39.284600Z

Maybe there was some performance reasons for using these stack based navigations. Good to know that it is all preference ๐Ÿ˜„

dnolen 2020-04-23T16:07:44.285200Z

@axel did the tutorial work for you? if so then what specific problem are you having?

2020-04-23T16:49:20.288900Z

@dnolen The tutorial works for me. Perfectly. Thanks for asking. REPL on the simulator (for now only tried iOS) works like a charm for me. I just struggle to get node modules required. And this again might be only me not yet understanding how React Navigation works wrt to @bla and bla imports (with and without the at-char) on the Javascript side and how that translates to Clojurescript requires.

dnolen 2020-04-23T16:50:55.290300Z

@axel for scoped libraries you have to use strings for the require in the ns form

2020-04-23T16:52:07.292400Z

I mostly use Clojure (not Clojurescript) and wanted to shortcut using RN with JS first and jump directly to Clojurescript instead. And now I'm bothering you with noob questions. Sorry. ๐Ÿ˜”

dnolen 2020-04-23T16:52:37.292800Z

note that some libraries export default there's no special handling for this - so you may need to go through that property

dnolen 2020-04-23T16:53:26.294Z

(.. foo -default -apiThing)

2020-04-23T16:54:12.294300Z

Ah, thanks for the hint.

dnolen 2020-04-23T16:54:54.295Z

@axel good luck, I think RN while cool / useful - is kinda the deep end

2020-04-23T16:59:17.298300Z

๐Ÿ™‚ Yes, that's my impression so far. I'm considering native mobile apps for my web app (which is not based on react as one could guess).

dnolen 2020-04-23T20:11:50.299800Z

about to remove all the Bonjour discovery stuff from Krell - I went down this path to avoid hard coding the IP/port in the client code because I had a good experience with Ambly but my experience w/ this approach on Android so far as been very low

dnolen 2020-04-23T20:12:16.300300Z

I switched to writing out the ip / port into the REPL code, and this works all the time and quickly in all cases

dnolen 2020-04-23T20:13:38.301700Z

I did change the code a bit so the REPL publishes an Bonjour service, if the device sees that it will take the updated information and reconnect - but this of course is just extra - the fundamental thing is more reliable

๐Ÿ‘ 4
dnolen 2020-04-23T20:16:35.302300Z

it also means no more adb command so REPL on Android is better

dnolen 2020-04-23T20:16:42.302500Z

fewer things to forget

๐Ÿ‘ 3
dnolen 2020-04-23T20:24:19.303Z

also the order of starting things doesn't matter any more

2020-04-23T22:02:38.304200Z

@dnolen is on fire! ๐Ÿ”ฅ

๐Ÿ’ฏ 1
dnolen 2020-04-23T22:03:04.304500Z

@admin055 everything should be more reliable for you

dnolen 2020-04-23T22:03:21.305100Z

I worked w/ Android simulator/device most of the day and the behavior is much improved

2020-04-23T22:06:02.306400Z

My last succed test was on real android device. Emulator was'nt work, so I'll retest later. Thx

dnolen 2020-04-23T22:07:14.307Z

@admin055 that would great, both cases could connect in a few seconds now when I tried several times today

๐Ÿ‘ 1