Fork me on GitHub

I am trying to import a module using '(def tab-view (js/require "react-native-scrollable-tab-view/index.js"))' but I keep getting that the module is unknown. I have installed the module using nam and launch my app using re-natal but without success. Does anyone have a hint? I have been stuck on this for while.


@grischoun: I’ve found it easiest to just fish the correct name out of the bundled JavaScript. (I’d point you to a blog post where I did this, but Linode is having an outage 😞 )


@mkifes: Thanks. Is this the link you are referring to ? If so, yes, unfortunately it is down.


@grischoun: yep. That one


@grischoun: IIRC, the two steps are (1) refer to the dep in index.ios.js as if you were going to actually use it there, (2) this causes it to appear in the JavaScript bundled by the packager; just surf to its URL in your browser and search for, say, “TabView” or “tab-view”. With luck you'll find the module ID string.


@mfikes: I see. I'll try that. Thanks again.