Fork me on GitHub
#cljsrn
<
2016-11-09
>
tiensonqin01:11:00

If you’re using Exponent or would like to give it a try, here is my experience: It’s by far the easiest and most enjoyable way for me. https://medium.com/@tiensonqin/why-exponent-on-react-native-especially-for-clojurescript-9bb1417c0c65#.g7pr44jyj

artemyarulin06:11:08

Nice read, thank you @tiensonqin. But still looking on the how many custom native modules I have it’s hard to imagine working in Exponent without it (OK, you mention it’s possible but I assume it misses the point of Exponent itself)

tiensonqin06:11:29

Yeah, currently if you have too much custom native modules, Exponent will not works for you. Integrating custom native modules will be the top priority for Exponent as I know.

artemyarulin06:11:17

btw - unrelated to this. Does anyone heard anything about native-script? Heard a lot about it some time ago, but haven’t seen it in use

tiensonqin06:11:49

I haven’t used it.

pvinis14:11:59

im in the part where i need custom components

pvinis15:11:45

so i am using regular js rn.. because i dont want to deal with wrapping the wrapper for the native components

artemyarulin16:11:31

@pvinis you mean custom native module? Because custom component is easy to do:

class HelloWorldApp extends Component {
  render() {
    return (
      <Text>Hello world!</Text>)}}

pvinis16:11:10

yea, native modules, sorry

pvinis16:11:11

i would like to use cljs more, but i think react native is not the best way. its way too many layers to take into account. and when you want native modules and external libs etc, adding even more layers is not too easy

pvinis16:11:14

not for me at least

artemyarulin16:11:48

yep, can understand that. So, do you have any specific question about native module?

artemyarulin16:11:59

Or you just don’t know where to start?

artemyarulin16:11:42

btw - about that and for anybody in this chat: https://github.com/frostney/react-native-create-library Nice starting point for RN native module creation, in case you don’t want to spend much time

pvinis16:11:52

no specific problem. just that i sometimes have problems connecting objc-js, and then problems connecting js-cljs

pvinis16:11:03

so together, they are a slow process for me

pvinis16:11:21

@artemyarulin a thats pretty interesting

pvinis16:11:24

i will try it tomorrow

savelichalex17:11:07

@pvinis maybe you want some examples? I have few in my repo)

pvinis19:11:23

aha. i saw a couple in souptitle

pvinis19:11:51

so you dont have a js wrapper and then use that in cljs.

pvinis19:11:04

you use it in cljs immediately