Fork me on GitHub
#cljsrn
<
2018-02-02
>
jeaye00:02:32

Just now trying to get local images working. I've set "imageDirs": ["img"], in .re-natal and I have a ./img/logo.png file at the root of my project. When I do re-natal use-figwheel, I can see the require added in my index.android.js, as modules['./img/logo.png']=require('./img/logo.png'); but I get an error saying the module isn't found when I do this: (def logo (js/require "./img/logo.png"))

jeaye00:02:45

What am I missing?

carocad10:02:26

@jeaye it happened to me several times as well. I dont know clear solution unfortunately. I think that reinstalling the app solved it sometimes

jeaye16:02:00

@carocad You're absolutely right; I just uninstalled/reinstalled it and the error is gone. Thank you!

carocad19:02:54

"something doesnt work properly? just uninstall and reinstall" it always works 😉

ferossgp16:02:27

https://github.com/react-native-community/react-native-tab-view/ has some one used this library? I can't find how to use TabBar, tried to convert keys js->clj in renderHeader but with no success