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
benny 2020-06-19T00:14:56.344700Z

is it possible to make my expo app the launcher on android without ejecting?

ferossgp 2020-06-19T11:03:28.350100Z

Have someone succeed using https://docs.swmansion.com/react-native-reanimated/docs/installation#babel-plugin ? Basically to run babel post-precessing for code which is live loaded and evaled on device. I tried to monkey-patch clojurescript compiler, to run babel on generated code before returning it but thats an uglly method which I would like to avoid.

Shako Farhad 2020-06-21T01:17:36.354Z

I didn't know re-animated 2 was out yet. I am also interested in how to get this working with shadow-cljs. @raspasov had a cljc macro that he used to create worklet function with javascript directive "worklet". I don't know if he has actually tried to use re-animated 2 this way though.

raspasov 2020-06-21T02:18:21.356600Z

Important, put this in a *.cljc file:

(defmacro js-directive
  [directive]
  (list 'js* (str "'" directive "'")))

raspasov 2020-06-21T02:18:41.356800Z

I haven’t tried reanimated 2

ferossgp 2020-06-21T08:37:38.357Z

The actual problem is not in adding directives, but in the fact that they use a babel plugin which transform functions with directives into special closures that then are executed in a separated JS env. More on that here: https://github.com/software-mansion/react-native-reanimated/blob/master/plugin.js

Shako Farhad 2020-06-21T08:39:27.357300Z

I think re-animated 2 is quite rough for now. They said that they wanted to make the installation part of it simpler in the future. Maybe just wait until it has matured a little bit. But it would be so nice if this could be solved. Looks so good with re-animated 2! 😄

ferossgp 2020-06-19T11:06:50.353100Z

Babel could be also injected in shadow-cljs build when emit/emitln is called or krell rn-eval but this is not an universal method