Fork me on GitHub
#cljsrn
<
2016-04-08
>
adamfrey14:04:49

I’m running into a problem while using re-natal where my cljs is compiling without errors or warnings, but then I require a foo namespace from my base namespace, and foo/any-var is nil, regardless it’s real value in foo. Then if I edit the foo namespace in any way (add a comment), the app reloads through figwheel and foo/any-var has its correct value. Has anyone seen this problem before/have an idea what’s going on?

hemingward18:04:31

Hi all. Quick (newb) question. I’m starting my first cljsrn app using re-natal. I want to use the react-native-search-bar, so I followed the instructions over at https://github.com/umhan35/react-native-search-bar. I perform a`npm install react-native-search-bar`; I think used rnpm to link everything. Everything looks good in xcode. In one of my namespaces I do the whole (def searchbar (r/adapt-react-class (js/require "react-native-search-bar"))). And then, of course, when I fire up the emulator I get a Big Crunch Red Screen Of Death™: Requiring unknown module "react-native-search-bar". If you are sure the module is there, try restarting the packager or running "npm install”… The module is there, the xcode project is linked, the product is there… that should be all there is to it, no?

hemingward18:04:11

(sorry - quick correction, I included the —save flag when doing the npm install)

hemingward18:04:25

One thing I noticed is the index/android.ios.js files have the module listed, which I imagine could cause some problems, but it seems the CLI tool which generates those files never includes it. Any idears? Something doesn’t seem to be completely aligning. Thanks!

hemingward19:04:35

And from atop the mountains, both of the sea and land, a loud, gregarious GROOOOOOOAAAAAN was heard.

artemyarulin19:04:34

I guess it should be on a top of the README - quiet easy to miss it now

hemingward19:04:42

I’d actually read that last week prior to starting this project… one would think I’d remember, but one would be horribly disappointed.

hemingward19:04:31

all up and running now. Thanks a TON @artemyarulin. Extremely helpful. Cheers!

drapanjanas19:04:56

@artemyarulin good point about README I’ll move that up