cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
Ale 2021-05-23T02:42:23.006200Z

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

thheller 2021-05-23T06:59:55.006700Z

@laynor ["react-native-vector-icons/MaterialCommunityIcons$default" :as MaterialCommunityIcons], see https://clojurescript.org/news/news#_new_core_features

Ale 2021-05-23T08:14:39.007300Z

@thheller thanks!