Fork me on GitHub
#cljs-dev
<
2020-09-19
>
igrishaev12:09:56

Hi! I'm using krell and got a problem with the @react-native-community/async-storage module. When importing it with (js/require "...") , I'm getting a nil value. Neither (:require ...) works in my ns declaration. I've tried the :language-out :es6 option in my deps.edn file with no success.

igrishaev12:09:21

At the same time, other RN modules such "@react-navigation/stack" work fine.

igrishaev12:09:18

I may guess, the problem is that async-storage exports a default const class, that's what makes it different to another modules.

igrishaev14:09:43

sorry, my bad: the namespace was not a part of the build, and thus the async-storage module was not in npm libs