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!
On a related note — is there anyone available for paid consulting? I need help with my Expo/RN project and would pay for support.
@hadilsabbagh18 If you are still looking for some extra help, I’ve got some availability. Feel free to DM.
Hi @joshmiller Can you help me with build.edn externs?
I am using Expo + RN and Krell.
@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.
I am getting warnings:
Adding extern to Object for property navigate due to ambiguous expression
Should I worry?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.
Yeah, I’ve tried that to no avail.
Any chance it’s in a core.async block?
No. The code is:
(.dispatch ^js/NavigationContainer @navigator-ref (.navigate ^js/CommonActions CommonActions ^js/Object (clj->js {:name route :params {:screen screen}})))
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] ...Ah. Thanks!
I will try that.
The docs aren’t totally clear on that being required but it’s how it’s always done.
It did not help.
Hm. 👎
Are you having actual trouble or just seeing the warnings?
Just seeing the warnings. But I’ve been burned by this before.
Yeah, I think you’ll be fine up to the point where you try to do advanced compilation, then you’ll be stuck.
I think I’m ok. I did advanced compilation and it ran on my emulator.
Ah, that’s good then.
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-shadow • https://www.youtube.com/watch?v=QsUj7HO5xDg
No, I built a project with Expo and RN. Most everything works. I just need an extra pair of eyes on my work.