Fork me on GitHub
#cljsrn
<
2017-06-30
>
manu08:06:57

anyone used react-native-video? I need to stream a video from my backend with http request..

pesterhazy09:06:59

@domkm are you seeing any problems?

domkm14:06:34

@pesterhazy: Yes, I think it's related to the switch to using create-react-class.

pesterhazy14:06:18

what's the error message?

pesterhazy14:06:34

did you add the additional npm dependency create-react-class?

pesterhazy09:06:13

I haven't tried yet

tobowers10:06:49

Hi! I’m currently using expo app and clojurescript and I’m having trouble getting my tests to run. Anyone else getting tests to work using straight-up react-native or re-natal? (ie, is it just an expo problem?)

tobowers10:06:13

I get #object[TypeError TypeError: undefined is not an object when trying to run a test (or even do a #macroexpand)

gphilipp11:06:21

I tried to upgrade my well-working re-natal setup from RN 0.44.2 to RN0.45 but it seems that the memory issues when running the packager are back

gphilipp12:06:26

I’m on node v7.8, I’ll try upgrading to v8.1.3 since there are a few enhancement to memory since v8.0 and see if that changes anything

pesterhazy12:06:35

@gphilipp what I do is to use "dev" mode, i.e. not use whole-program optimization

pesterhazy12:06:56

haven't tried with recent version of RN though

gphilipp12:06:11

@pesterhazy dev mode ? When using the packager ?

gphilipp12:06:26

How do you specify that ?

gphilipp12:06:22

@pesterhazy oh I get it, in the node line right ? --dev false -> --dev true ?

pesterhazy12:06:58

the drawback is that it sets DEV__ to true as well (in the js file)

pesterhazy12:06:16

so you need to go in and change it to false (so you don't see yellow boxes/red boxes and slow perf)

pesterhazy12:06:26

or write a script that changes the flag

gphilipp13:06:58

@mfm (def multi-slider (r/adapt-react-class (.-default (js/require "@ptomasroos/react-native-multi-slider"))))

gphilipp13:06:16

then [multi-slider {:values [5] :sliderLength 200}] in your view

zlrth13:06:12

you don’t say. i’ll try that now. thanks. i wish i could ask a more intelligent question than: why do i have to include (.-default...? is it an idiosyncrasy of react-native-multi-slider? a bug in adapt-react-class? i’ve not ever seen ...(.-default... in example reagent projects, though i haven’t looked hard.

gphilipp13:06:43

@pesterhazy I see, thanks for the heads up, for the record I’ve filed a gist https://gist.github.com/gphilipp/6712452b2c7d5151b5d93c0417f48e15

tobowers13:06:33

“something” in the chain doesn’t handle the default export correctly

tobowers13:06:48

not sure whether its react-native-packager or clojurescript though

zlrth13:06:13

thanks! i can cope with that.

zlrth13:06:55

i appreciate you pointing out the line number.

tobowers13:06:38

I ran into that with native-base

gphilipp15:06:25

some components follow that, others don’t

zlrth15:06:25

ah good to know

mfikes21:06:43

Oddly, requiring core.async (and its macros) appears to be causing my Xcode build to get stuck for a long time (5 minutes or so) at the “Running 1 of 1 custom shell scripts” phase for a release build, and then fail. I don’t know if it is something about the resulting JavaScript, or if it is simply some size threshold (the JavasScript only goes from 2.3 to 2.4 MB). This is a re-natal based app, after doing lein prod-build with pretty much the stock settings (`:optimizations :simple`, etc.)

mfikes21:06:59

I’ll have to track down what is going on. Commenting out the requires leads to things building quickly.