cljsrn

rende11 2023-12-03T10:17:41.755219Z

Also, should I keep separately cljs src folder and react native generative files? I found different examples of code organization. Any pros and cons? It will affect build size or something like this? like this

app
└── src/
    └── app
        ├── core.cljs
└──react-native-app/
   └── index.js
   └── other-stuff
or
app
└── src/
    └── app
        ├── core.cljs
├── index.js
└── other-stuff

rende11 2023-12-03T11:02:07.546129Z

Another question, what pros, cons, benefits of this approaches?

(def view (r/adapt-react-class (.-View ^js react-native)))
(def text (r/adapt-react-class (.-Text ^js react-native)))

;; 1
[view
 [text "Hello!"]]

;; 2
[:> View
  [:> Text "World!"]]

dmitryn 2023-12-06T08:26:22.867629Z

:> is more like syntax sugar equivalent to adapt-react-class https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md#creating-reagent-components-from-react-components