Fork me on GitHub

hello, is there anyone that used cljs-expo?


I´m begining of using it and how can I include an external lib installed from npm to use with require?


@fabrao just do npm install lib-name --save and in your cljs code do (js/require "lib-name")


@carocad is there any other config to do? I tried this and seems not find module. Have you tried it in expo Project?


yes I am using the expo template for cljs and that is my workflow. Obviously the library must be js only. No native code


So if I want to use react-native-voice Will not be possible ?


I see that it has native code so no. Unfortunately that is the catch with Expo. If you want to use it directly you cannot use native code.


I know that you can “detach” your project from Expo and then use native libraries but I would be wary of it since I dont think many cljs devs have done that


Hello everyone, has someone made re-natal app with web version together from the same repository? I'm looking for a good solution to make different side effects based on platform web/mobile, the problem is that requiring namespace and based on variable to select what to do is not possible because rn didn't know about browser functionality and vice versa, it is possible to require them in cljs build with the same name in different places but I think that this can be confusing