Fork me on GitHub
#cljsrn
<
2016-11-15
>
vikeri08:11:58

I think I solved it by adding a .babelrc-file to my root and ignoring the build folder 😄

vikeri08:11:45

Might add it to the example project of boot react native if it is requested: https://github.com/mjmeintjes/boot-react-native/issues/76

artemyarulin08:11:25

@vikeri So did you disable babel completely? What about NPM libs that still requires babel?

vikeri08:11:33

@artemyarulin Nope, babel still does its thing, it just doesn’t transpile anything in the folder where my cljs->js output is.

vikeri08:11:14

Not 100% sure that this is working, my colleague is testing it as we speak

artemyarulin08:11:23

Mind share what you have in .babelrc so I save a minute from googling that? 🙂

artemyarulin08:11:17

I remember I was playing with that but didn’t notice any speed difference in my case

vikeri08:11:46

build being the dir of my cljs output

vikeri09:11:14

Confirmed that it worked with my colleague now as well 🎉

upgradingdave14:11:33

Hi all, just getting started with react native and clojurescript. I followed along here http://presumably.de/boot-react-native.html and it works great, very cool stuff.

upgradingdave14:11:22

Just curious - has anyone tried boot-react-native with react-native-desktop?

pesterhazy15:11:27

@upgradingdave great to heat BRN works for you!

pesterhazy15:11:44

I haven't tried that yet but would be very curious as to whether it works

upgradingdave15:11:11

yeah, great stuff, thanks so much for putting the boot-react-native together!

upgradingdave15:11:15

I’m trying it out right actually. I created a new xcode project files using react-native-macos init MyProject and then moved that under boot-react-native/example/apps ...

pesterhazy15:11:35

yeah that's what I would have done as well

upgradingdave15:11:41

I think it’s close, but just realized that react-native-macos uses a react-native-macos node module. So I’m not sure whether the 2 node modules (react-native-macos, and react-native) will conflict? But hopefully not

upgradingdave15:11:03

and also I think I need to patch the react-native-macos, just like you patched react-native for the goog require stuff, so trying that now

pesterhazy15:11:31

maybe you just need to replace on withe the other

pesterhazy15:11:38

yeah patching would still be required

upgradingdave15:11:49

ok, cool, thanks, will let you know how it goes

upgradingdave17:11:30

Hi @pesterhazy, good news: It works with react-native-macos!

upgradingdave17:11:50

still very rough around the edges, but I posted the code I have so far here: https://github.com/upgradingdave/boot-react-native/tree/macos

upgradingdave17:11:01

The way I have it set up breaks the ios build, unfortunately, but it might be possible to run them both side, by side, I’ll keep at it as I have time

upgradingdave17:11:28

but I think it's really cool that it’s working to build a mac osx desktop app. I’m going to try and build a more complicated macos app over the next couple weeks to learn more about how everything works together