Fork me on GitHub
#cljsrn
<
2017-07-11
>
bnvinay9208:07:24

Is it possible to integrate react native into an existing android app using clojurescript?

pesterhazy08:07:32

if it's possible with React Native, it's possible in cljsrn

pesterhazy08:07:12

It is possible with React Native. Ergo, it's possible in cljsrn. </modus-ponens>

yvon10:07:31

Hello @vikeri. I can not say that I have experience as such. I try to take existing projects and understand them and modify them as I see fit.

vikeri14:07:57

@yvon, Ok! It could possibly be easier to learn javascript React Native first then. It’s a lot to learn React, React Native and Clojure at the same time.

yvon14:07:44

@vikeri, any suggestion?

zlrth14:07:10

@yvon i second vikeri’s suggestion to learn javascript react-native. coping with error messages when you’re not sure if the cause is cljs, rn, etc is tough. as for suggestions, i enjoyed https://kylewbanks.com/blog/react-native-tutorial-part-1-hello-react , where the author makes a little calculator. the exercises at the end are fun!

vikeri14:07:00

:thumbsup:

drapanjanas20:07:53

trying to bump re-natal to RN 0.46.1 and reagent 0.7.0, RN works, but after upgraded to 0.7.0 I get red screen “React not defined”. Anyone had success with reagent 0.7.0?

pesterhazy21:07:12

Did you add create-react-class as well?

pesterhazy21:07:22

Anything else in react-native log-ios?

zlrth23:07:53

noob question. i’m doing (map rect-maker (take 10 do-stuff)) and i get a list of

([#object[reagent.impl.template.NativeWrapper]
  {:fill "black", :x 1, :y 100, :height 100, :width 100}]
 [#object[reagent.impl.template.NativeWrapper]
  {:fill "black", :x 26, :y 200, :height 100, :width 100}]
 [#object[reagent.impl.template.NativeWrapper]
  ...)
but that list of react-native components is not valid hiccup. how do i get just:
[object
[object
[object