@@ -74,14 +74,15 @@ Create `shadow-cljs.edn`
74
74
[re-frame " 0.11.0" ]
75
75
[re-frame-steroid " 0.1.1" ]
76
76
[rn-shadow-steroid " 0.1.1" ]
77
- [re-frisk-rn " 0.1.0 " ]]
77
+ [re-frisk-rn " 0.1.1 " ]]
78
78
79
79
:builds {:dev
80
80
{:target :react-native
81
81
:init-fn clojurernproject.core/init
82
82
:output-dir " app"
83
83
:devtools {:autoload true
84
- :after-load steroid.rn.core/reload}}}}
84
+ :after-load steroid.rn.core/reload
85
+ :preloads [re-frisk-rn.preload]}}}}
85
86
```
86
87
87
88
Next, we need to initialize project as Clojure Deps, ` deps.edn ` will be used only for code inspection in IDE, if you know a better way pls file a PR
@@ -97,7 +98,7 @@ create `deps.edn` file
97
98
re-frame {:mvn/version " 0.11.0" }
98
99
re-frame-steroid {:mvn/version " 0.1.1" }
99
100
rn-shadow-steroid {:mvn/version " 0.1.1" }
100
- re-frisk-rn {:mvn/version " 0.1.0 " }}
101
+ re-frisk-rn {:mvn/version " 0.1.1 " }}
101
102
:paths [" src" ]}
102
103
```
103
104
@@ -303,22 +304,7 @@ Good:
303
304
304
305
### 6. Devtools
305
306
306
- let's add re-frisk debugging tool and see what's exactly happening in the app
307
-
308
- core.cljs
309
-
310
- ```clojure
311
- (ns clojurernproject.core
312
- (:require ....
313
- [re-frisk-rn.core :as rfr]))
314
-
315
- (defn init []
316
- (rfr/enable )
317
- (re-frame/dispatch [:init-app-db ])
318
- (rn/register-reload-comp " ClojureRNProject" root-comp))
319
- ```
320
-
321
- run the tool
307
+ let's run re-frisk debugging tool and see what's exactly happening in the app
322
308
323
309
Terminal 4 : `shadow-cljs run re-frisk-rn.core/start`
324
310
0 commit comments