Fork me on GitHub
#cljsrn
<
2022-08-09
>
hadils15:08:02

Hi! I have defined all my externs and am not using optimization, but my Android emulator keeps crashing on startup. Does anyone have experience with this? What should I be doing to stabilize my JS output from CLJS? Thanks in advance!

hadils20:08:24

On a related note — is there anyone available for paid consulting? I need help with my Expo/RN project and would pay for support.

👀 2
greg23:08:06

are you trying to build a new project or you carry on maintenance of existing one? If the former, this small example could help you: • https://github.com/PEZ/rn-rf-shadowhttps://www.youtube.com/watch?v=QsUj7HO5xDg

hadils23:08:22

No, I built a project with Expo and RN. Most everything works. I just need an extra pair of eyes on my work.

joshmiller23:08:21

@UGNMGFJG3 If you are still looking for some extra help, I’ve got some availability. Feel free to DM.

hadils23:08:53

Thank you @U0E1JV8GK. I will let you know.

👍 1
hadils20:08:52

Hi @U0E1JV8GK Can you help me with build.edn externs?

hadils20:08:01

I am using Expo + RN and Krell.

joshmiller22:08:16

@UGNMGFJG3 Possibly, what are you looking to do? I haven’t seen the need to do an externing in recent CLJS builds that handle node dependencies much better.

hadils22:08:13

I am getting warnings:

Adding extern to Object for property navigate due to ambiguous expression
Should I worry?

joshmiller22:08:19

I wouldn’t necessarily worry. If you have issues with advanced compilation, you might need to type hint the var that’s causing it though.

hadils22:08:42

Yeah, I’ve tried that to no avail.

joshmiller22:08:21

Any chance it’s in a core.async block?

hadils22:08:18

No. The code is:

(.dispatch ^js/NavigationContainer @navigator-ref (.navigate ^js/CommonActions CommonActions ^js/Object (clj->js {:name route :params {:screen screen}})))

joshmiller22:08:58

I wouldn’t bet my life on it, but I think you need to type hint where they’re defined. I.e.,

(let [^js/NavigationContainer nav-ref @navigator-ref] ...

hadils22:08:19

Ah. Thanks!

hadils22:08:25

I will try that.

👍 1
joshmiller22:08:04

The docs aren’t totally clear on that being required but it’s how it’s always done.

hadils22:08:52

It did not help.

joshmiller22:08:16

Hm. :thumbsdown:

joshmiller22:08:24

Are you having actual trouble or just seeing the warnings?

hadils22:08:49

Just seeing the warnings. But I’ve been burned by this before.

joshmiller22:08:22

Yeah, I think you’ll be fine up to the point where you try to do advanced compilation, then you’ll be stuck.

hadils22:08:04

I think I’m ok. I did advanced compilation and it ran on my emulator.

joshmiller22:08:31

Ah, that’s good then.