This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-23
Channels
- # announcements (19)
- # babashka (6)
- # beginners (47)
- # cljs-dev (4)
- # cljsrn (3)
- # clojure (18)
- # clojure-australia (3)
- # clojurescript (50)
- # code-reviews (1)
- # conjure (16)
- # datomic (6)
- # editors (4)
- # emacs (1)
- # fulcro (10)
- # graphql (3)
- # helix (7)
- # jackdaw (10)
- # malli (1)
- # off-topic (3)
- # pathom (4)
- # sci (2)
- # shadow-cljs (39)
- # testing (3)
- # tools-deps (5)
- # vscode (1)
Is there a better way than this to import "default" in krell?
(ns dondai.core
(:require [clojure.string :as string]
... other imports
["react-native-vector-icons/MaterialCommunityIcons" :as rnvi-MaterialCommunityIcons]
))
(def MaterialCommunityIcons (aget rnvi-MaterialCommunityIcons "default"))
I tried importing it like
(ns dondai.core
(:require [clojure.string :as string]
... other imports
["react-native-vector-icons/MaterialCommunityIcons"
:refer [default] :rename {default MaterialCommunityIcons}]
))
but this way MaterialCommunityIcons
is undefined
@laynor ["react-native-vector-icons/MaterialCommunityIcons$default" :as MaterialCommunityIcons]
, see https://clojurescript.org/news/news#_new_core_features