@@ -21,7 +21,7 @@ PROJECT SOURCES: https://github.com/flexsurfer/ClojureRNProject
21
21
22
22
Open project in IDE
23
23
24
- ![ ] (https://i.imgur.com/GFLzmOi.png =500x )
24
+ ![ ] ( https://i.imgur.com/GFLzmOi.png )
25
25
26
26
Edit ` App.js `
27
27
@@ -53,7 +53,7 @@ Run the app
53
53
Terminal 1: ` yarn start `
54
54
Terminal 2: ` yarn ios `
55
55
56
- ![ ] (https://i.imgur.com/uO6xvCK.png =300x )
56
+ ![ ] ( https://i.imgur.com/uO6xvCK.png )
57
57
58
58
59
59
OK, now we have RN project and we want to run the same app but with clojure
@@ -102,17 +102,17 @@ create `deps.edn` file
102
102
103
103
Right click on the file and ` Add as Clojure Deps Project `
104
104
105
- ![ ] (https://i.imgur.com/C110quU.png =500x )
105
+ ![ ] ( https://i.imgur.com/C110quU.png )
106
106
107
107
Optional turn off a spelling
108
108
109
109
Indellij IDEA -> Preferences
110
110
111
- ![ ] (https://i.imgur.com/eqWzrqM.png =400x )
111
+ ![ ] ( https://i.imgur.com/eqWzrqM.png )
112
112
113
113
create ` src ` folder and ` clojurernproject ` package with ` core.cljs ` file
114
114
115
- ![ ] (https://i.imgur.com/gDEWfL3.png =500x )
115
+ ![ ] ( https://i.imgur.com/gDEWfL3.png )
116
116
117
117
118
118
core.cljs
@@ -145,7 +145,7 @@ Reload the app
145
145
146
146
Cmnd+D
147
147
148
- ![ ] (https://i.imgur.com/7sOO4Ko.png =200x )
148
+ ![ ] ( https://i.imgur.com/7sOO4Ko.png )
149
149
150
150
Now try to change the code, you should see it reloaded by shadow-cljs in the app
151
151
@@ -176,7 +176,7 @@ events.cljs
176
176
177
177
Set cursor on ` fx/defn ` and press ` option+return `
178
178
179
- ![ ] (https://i.imgur.com/4ahMkVJ.png =400x )
179
+ ![ ] ( https://i.imgur.com/4ahMkVJ.png )
180
180
181
181
Move selection to ` Resolve .. as... ` and press ` return ` then select ` defn `
182
182
@@ -219,7 +219,7 @@ Resolve `defview` as `defn` and `letsubs` as `let` same way how we did it for `f
219
219
220
220
you can press "Update counter" button, and then change your code, and you can see app updated, but app state remained the same
221
221
222
- ![ ] (https://i.imgur.com/T5wfvnX.png =300x )
222
+ ![ ] ( https://i.imgur.com/T5wfvnX.png )
223
223
224
224
now you have clojurescript RN app configured with hot reload and re-frame state
225
225
@@ -363,7 +363,7 @@ And run tests
363
363
364
364
Terminal 3 : `shadow-cljs compile test`
365
365
366
- 
366
+ 
367
367
368
368
### 7. Navigation
369
369
0 commit comments