This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-01
Channels
- # announcements (26)
- # babashka (58)
- # bangalore-clj (1)
- # beginners (48)
- # bitcoin (1)
- # chlorine-clover (9)
- # clara (7)
- # clj-kondo (11)
- # cljs-dev (10)
- # cljsrn (36)
- # clojars (11)
- # clojure (161)
- # clojure-europe (39)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-uk (14)
- # clojured (1)
- # clojurescript (38)
- # conjure (25)
- # core-async (18)
- # cursive (19)
- # datascript (9)
- # datomic (11)
- # emacs (10)
- # events (2)
- # figwheel-main (2)
- # fulcro (44)
- # funcool (5)
- # girouette (1)
- # graalvm (6)
- # jobs (1)
- # lsp (93)
- # malli (3)
- # membrane (3)
- # off-topic (17)
- # pedestal (2)
- # polylith (12)
- # re-frame (2)
- # remote-jobs (1)
- # shadow-cljs (47)
- # specter (2)
- # startup-in-a-month (1)
- # tools-deps (4)
It definitely has improved 🙂 My first project with CLJS + RN was back in 2016. I would say the Expo “bare” workflow is quite nice nowadays. That’s the main difference for me.
Prithee, what stack(s) are we all using for CLJS+RN? I am getting ready to dive back in. Glad to hear it is better! My last visit was 'bout four years ago?
I’m using the following library like so:
(:require ["react-native-google-place-picker" :default RNGooglePlacePicker])
(defn add-address [navigation]
(.show RNGooglePlacePicker
(fn [response]
(prn "response is " response)
)))
But I’m getting the following error:
How to fix this?
basically doing (js/console.log RNGooglePlacePicker) prints null. What am I doing wrong?
@U050KSS8M with :as it prints
{"default": null}
Since the documentation says do:
import RNGooglePlacePicker from 'react-native-google-place-picker';
according to the shadow-cljs user guide that would translate to :default, isn’t it?Hmm… Not sure, I am not familiar with shadow-cljs but I doubt it’s a problem from shadow per se. Things to try: • Did you link everything properly? • Always need to rebuild from xcode when adding a new library that requires native code • Clean your xcode caches, rebuild again • Restart your shadow/etc ClojureScript server processes
{"default": null}
… is suspicious, something doesn’t seem to be imported/built properly.I am not 100% certain in the necessity of all steps, but I struggled for a few weeks initially with RN to get everything working around libs, so I do all of the above without questioning it much when adding a new lib.
@U050KSS8M the documentation says react-native link for automatic link
Do I have to do a manual link?
that’s right I am on a recent version
react-native: 0.63.4
That should be ok then, if it reports all linked properly when you added the lib initially.
yes I rebuilt from xcode
yes I tried without the apostrophes but still getting null
how to clean xcode cache?
I clean it using Menu Bar -> Product -> Clean Build Folder
I also restarted shadow-cljs server process
@U01F1TM2FD5 please read the doc section specifically about the default exports. https://shadow-cljs.github.io/docs/UsersGuide.html#_about_default_exports