This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-09
Channels
- # announcements (9)
- # beginners (69)
- # cider (4)
- # clj-kondo (8)
- # cljdoc (1)
- # clojure (52)
- # clojure-austin (4)
- # clojure-europe (22)
- # clojure-nl (2)
- # clojure-norway (14)
- # clojure-uk (3)
- # clojurescript (9)
- # conjure (4)
- # cursive (3)
- # datalevin (13)
- # datomic (4)
- # events (2)
- # fulcro (59)
- # graalvm (17)
- # helix (25)
- # inf-clojure (4)
- # integrant (4)
- # introduce-yourself (2)
- # java (5)
- # kaocha (1)
- # leiningen (3)
- # meander (7)
- # nbb (4)
- # off-topic (30)
- # portal (4)
- # rdf (1)
- # reagent (5)
- # sci (1)
- # shadow-cljs (57)
- # sql (8)
- # tools-deps (39)
- # uncomplicate (3)
- # vim (3)
- # xtdb (8)
Hi, i would like to import react-native-url-polyfill/auto
at the top of my CLJS so the https://github.com/charpeni/react-native-url-polyfill will be automatically applied.
It should be equivalent to this #js import 'react-native-url-polyfill/auto';
, how can i do this?
https://github.com/charpeni/react-native-url-polyfill/blob/main/auto.js
import {setupURLPolyfill} from './index';
setupURLPolyfill();
I was still getting url.searchParams is not a function
(which should be repaired by importing auto.js)
can't comment on that. don't know how the lib works. what are you using to build? in case of shadow-cljs the above require will have the same effect as the import. for other tools not sure.
In this case, I don’t use shadow-cljs. I am building on top of this template https://github.com/joshuamiller/react-native-template-cljs-krell-storybook. I want to use some library that has an error in context of React-Native and react-native-url-polyfill lib should be a cure… I will try it later with shadow-cljs to see if importing is really the problem.