This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-16
Channels
- # announcements (1)
- # babashka (26)
- # beginners (17)
- # clojure (18)
- # clojure-europe (4)
- # clojure-losangeles (1)
- # clojure-norway (42)
- # clojure-uk (3)
- # datalevin (3)
- # datomic (5)
- # fulcro (7)
- # funcool (2)
- # gratitude (1)
- # hoplon (15)
- # hyperfiddle (7)
- # lsp (5)
- # malli (12)
- # off-topic (3)
- # reitit (7)
- # releases (5)
- # remote-jobs (8)
- # shadow-cljs (21)
- # sql (9)
Hey there. How would one import a JS file before everything else in SCLJS? I'm trying to setup https://reactnavigation.org/docs/drawer-layout/#installation and it requires having this import 'react-native-gesture-handler';
before everything else in index.js
or App.js
. Any help is highly appreciated. Thanks in advance.
I mean the best place is probably the locations you mentioned since they run before any CLJS output?
> why does it need to be before anything?
I have no idea. My best answer is "because React Native?"
> I mean the best place is probably the locations you mentioned since they run before any CLJS output?
You mean index.js
? Wouldn't it be overwritten by SCLJS on hot-reload?
its been years since I looked at anything react-native, so what does that look like nowadays?
that file is no longer required. RN now uses Expo, and you can configure expo to use index.js
directly within whatever the :output-dir
of SCLJS is