Fork me on GitHub
#cljsrn
<
2016-02-02
>
mjmeintjes00:02:42

@pesterhazy: Definitely not ideal, but have you tried just compiling the boot-react-native generated js to a bundle - i.e node node_modules/react-native/local-cli/cli.js bundle --platform ios --dev true --entry-file build/main.js --bundle-output main.jsbundle --verbose. That works on my PC, but haven't tested the generated bundle.

pesterhazy00:02:02

@mjmeintjes: haven't tried that yet. That would be optimizations :none, right?

pesterhazy00:02:11

hah! I managed to make it work.

pesterhazy00:02:57

got it to work with optimizations :advanced

mjmeintjes01:02:41

Cool - what did you change to make it work?

pesterhazy04:02:15

@mjmeintjes: a couple of things, like adding the right externs, use a cljs.edn file

pesterhazy04:02:47

will try to put up a PR soon

artemyarulin07:02:20

yohoo, my react-native-externs got used somewhere else but in my project, best day of my life 😄

pesterhazy09:02:02

@artemyarulin: hehe, that's tru! wanted to give you a shout-out anyway

pesterhazy09:02:11

great work on those, really useful

pesterhazy09:02:37

any way to include those using boot dependencies?

artemyarulin09:02:00

nah, thanks. Hope you sort things out in boot-react-native so I can finally move there from lein

artemyarulin09:02:13

nope, don’t know anything about boot, I’m lein guy

pesterhazy09:02:24

yeah, lein or boot, doesn't matter

pesterhazy09:02:42

integrating with cljsjs would be awesome

pesterhazy09:02:46

you mentioned it in the readme?

artemyarulin09:02:17

oh yeah, I though about that and actually started on making PR, but gave up for some reason. For now you can just add a dependency https://clojars.org/react-native-externs

pesterhazy09:02:38

is it possible for the cljs externs to pick up that dependency?

pesterhazy09:02:50

not 100% sure that works, sorry

artemyarulin09:02:23

this is exactly how cljsjs works actually - you have deps.cljs file in the root of your src folder https://github.com/artemyarulin/react-native-externs/blob/master/src/deps.cljs which then got processed by CLJS compiler like it’s described in cljsjs readme https://github.com/cljsjs/packages#using-these-packages

pesterhazy09:02:43

ok I'll try it

meow10:02:26

I'm on a Windows 10 laptop with 8 gigs of RAM. I need to evaluate various chat clients for Android and iOS. Any recommendations for an emulator to do such a thing? I don't need to do any development, I just need fast response time. I apologize if this is off-topic. I just thought you folks might be using emulators.

pesterhazy11:02:38

don't think you can install stuff from the AppStore in the iOS simulator (it's x86 vs the iPhone's arm)

drobati20:02:17

I've got limited experience with Clj and ReactJS, and cljs + rn looks super interesting - but I don't have a mac. I use linux on a old PC. Is there anything I can do to make iOS apps without xcode?

artemyarulin21:02:54

@drobati: Not much - well you can create an application and actually write JS side for your project but without ability to test it’s kinda pointless. You can write an app and target Android at first, later on when you will get an access to mac you can then extend the app with iOS support

artemyarulin21:02:17

Thing you can try is actually download virtual machine with osx

artemyarulin21:02:08

it’s not officially supported and it’s kinda slow but it’s something. This is a way how I started development for iOS 3 years ago...

artemyarulin21:02:15

another hard core way of doing ios development - write JS code locally and then (without any compilation) pass it to CircleCI/TravisCI and build and test there on iOS machines rage4

mj_langford21:02:13

but hackintoshes may be easier

mj_langford21:02:32

Or buying a cheap mac mini off ebay/apple refurb

drobati21:02:29

Sorry back.

drobati21:02:50

I was thinking that there is probably a rent a mac SaaS

drobati21:02:01

Really, can I ignore iOS?

drobati21:02:07

I'm just doing this for fun

drobati21:02:54

Since all the bootstrap tools have xcode as a dependency?

mj_langford21:02:57

RN works for more than just iOS

drobati21:02:11

I thought the bootstrap tools like Natal or Re-Natal need xcode

drobati21:02:45

I'll go read more about React Native though.

drobati21:02:53

I only know about react.js

drobati21:02:57

@mj_langford: I guess I'll try and consume as much as I can for your talk next week.