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
Oliver George 2020-05-25T04:03:13.201300Z

Krell sticks with the React Native convention of source file relative asset paths. (Re-natal was different and from memory encouraged a top level asset dir approach.)

pez 2020-05-25T19:53:20.203700Z

I can't get the asset require to work whatever I try. Evaluating it in the REPL i get nil regardless what path I use, as long as it is relative (I get an error if I use an absolute path). I'm thinking I should get an error if I provide a relative path that doesn't resolve to a real file? And a file descriptor number if it resolves?

thheller 2020-05-25T20:16:55.204400Z

asset requires don't work in the REPL since metro needs to provide them

thheller 2020-05-25T20:17:15.204600Z

and that is only done on load

thheller 2020-05-25T20:24:23.204900Z

(in shadow-cljs at least, not actually sure what krell does)

Oliver George 2020-05-25T21:29:16.207300Z

@pez I had that at one point and a clean build fixed it. When I clean I delete ‘out’ and ‘.cpcache’.