Fork me on GitHub
#cljsrn
<
2016-06-01
>
pesterhazy06:06:40

@kenny: try looking at the packager output in a browser

pesterhazy06:06:04

It may be a syntax error in the bundle

kenny06:06:24

@pesterhazy: Unable to connect with remote debugger. It seems like something is failing pretty early on.

caio07:06:13

is there something wrong with this? i'm trying to turn native events into re-frame signals, but nothing happens

(def ReactNative (js/require "react-native"))
(def DeviceEventEmitter (.-DeviceEventEmitter ReactNative))
(.addListener DeviceEventEmitter "keyboardWillShow" #(js/console.log "xxx"))

pesterhazy07:06:25

@caio, that's preceisely what I use

pesterhazy07:06:04

@kenny: I think the remote debugger message is not relevant, but I may be wrong

misha10:06:02

@caio:

(enable-console-print!)
?

misha10:06:58

don't forget to trigger keyboardWillShow (focus any input, etc.)

pesterhazy10:06:31

@caio, possibly a bug in your java/objectivec code

caio13:06:29

oh, just found out keyboardWill* doesn't work in android 😕 switched to keyboardDid*

savelichalex17:06:19

Hey guys, do you have any example how make reagent component as a library? I want to publish something)

pesterhazy18:06:48

A reagent component is just a function, so you can look at any cljs library for inspiration

pesterhazy18:06:22

Is it a react-native component?

savelichalex19:06:01

@pesterhazy: yep) this is more react class then just function.. Is it possible to make for plain js too?

pesterhazy19:06:53

A js class is also just a function :)

savelichalex19:06:54

Tecnically of course, but for react it must extend React.Component:)

savelichalex19:06:21

I thought that exist at least one published reagent component.. I’m need example)