cljsrn

hadils 2022-08-09T15:45:02.409259Z

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!

hadils 2022-08-09T20:24:24.357369Z

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
joshmiller 2022-08-11T23:40:21.793039Z

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

hadils 2022-08-11T23:40:53.207959Z

Thank you @joshmiller. I will let you know.

👍 1
hadils 2022-08-12T20:33:52.903819Z

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

hadils 2022-08-12T20:34:01.408109Z

I am using Expo + RN and Krell.

joshmiller 2022-08-12T22:03:16.674559Z

@hadilsabbagh18 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.

hadils 2022-08-12T22:26:13.157279Z

I am getting warnings:

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

joshmiller 2022-08-12T22:27:19.353749Z

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.

hadils 2022-08-12T22:27:42.832659Z

Yeah, I’ve tried that to no avail.

joshmiller 2022-08-12T22:28:21.255059Z

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

hadils 2022-08-12T22:29:18.224009Z

No. The code is:

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

joshmiller 2022-08-12T22:33:58.978769Z

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] ...

hadils 2022-08-12T22:34:19.942259Z

Ah. Thanks!

hadils 2022-08-12T22:34:25.355279Z

I will try that.

👍 1
joshmiller 2022-08-12T22:35:04.539939Z

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

hadils 2022-08-12T22:45:52.872399Z

It did not help.

joshmiller 2022-08-12T22:48:16.838679Z

Hm. 👎

joshmiller 2022-08-12T22:48:24.124979Z

Are you having actual trouble or just seeing the warnings?

hadils 2022-08-12T22:48:49.527509Z

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

joshmiller 2022-08-12T22:49:22.337589Z

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

hadils 2022-08-12T22:50:04.178189Z

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

joshmiller 2022-08-12T22:50:31.262289Z

Ah, that’s good then.

greg 2022-08-09T23:06:06.775739Z

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

hadils 2022-08-09T23:07:22.658359Z

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