Commit 313b508
authored
Add Fabric support (#410)
* Add fabric on iOS (#400)
* Update podspec file for fabric
* Define codegen spec & move import to separate file
* Add codegenConfig in package.json
* Update podspec to detect .mm files
* Change spec types to floats
* Implement fabric component with props updating
* Re-order functions, add accessibilityIncrements prop
* Clean up imports, remove comment
* Sort out props updating, remove unused functions
* Add event handling
* Add tapToSeek implementation
* Fix tapToSeek
* Handle images using bridge
* Add missing typedef
* Verify the build for new arch with GH Actions
* Save new-arch Pods under new-arch cache key
* Use Podfile.lock with old arch and regenerate for new one
* Correct path for new arch Podfile.lock creation
* Disable flipper in Podfile
* Install pods with new arch flag
* Fix tapToSeek on iOS
* Allow value property to be controlled
* Generate project.pbxproj for new arch
* Separate npm & pods step in CI
* Change step names, fix cache keys
* Remove pods cache
* Run npm install if cache was not found
* Run build using xcodebuild
* Fix: Pods-related error after using Pods from cache (#407)
* Bring back Pods to cache
* Use new-arch string in key for new arch cache
* Try to reinstall pods instead of creating new
* Separate deps installation between two caches
* Rename Pods reinstall step
* Remove explicit folly version, default to old arch
* Add clean scripts in example for codegen cleanup
* Change CI step names
* Remove isFabricEnabled
This check is no longer needed.
Co-authored-by: BartoszKlonowski <Bartosz.Klonowski@callstack.com>
* Add fabric on Android (#402)
* Configure build.gradle
* Update libraryName on android
* Create ReactSlider shared implementation
* Split implementations into oldarch and newarch
* Dispatch events
* Cleanup eventDispatcher
* Make oldarch implementation use shared code
* Add defaults to js spec
* Clean up newarch ReactSliderManager
* Reorder props to fix disabled state
* Handle TestID setter
* Move ReactSliderShadowNode to shared implementation
* Share getExportedCustomDirectEventTypeConstants
* Remove comments, add empty line1 parent 18297cd commit 313b508
File tree
18 files changed
+1043
-503
lines changed- .github/workflows
- example
- ios
- example.xcodeproj
- package
- android
- src
- main/java/com/reactnativecommunity/slider
- newarch/java/com/reactnativecommunity/slider
- oldarch/java/com/reactnativecommunity/slider
- ios
- RNCSlider.xcodeproj
- src
18 files changed
+1043
-503
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 110 | + | |
| 111 | + | |
114 | 112 | | |
115 | | - | |
| 113 | + | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
119 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
120 | 135 | | |
121 | 136 | | |
122 | 137 | | |
123 | 138 | | |
124 | | - | |
125 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
126 | 175 | | |
127 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
128 | 187 | | |
129 | | - | |
130 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
131 | 199 | | |
132 | 200 | | |
133 | 201 | | |
134 | | - | |
| 202 | + | |
135 | 203 | | |
136 | 204 | | |
137 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 12 | | |
75 | 13 | | |
76 | | - | |
77 | | - | |
78 | 14 | | |
79 | 15 | | |
80 | 16 | | |
| |||
352 | 288 | | |
353 | 289 | | |
354 | 290 | | |
355 | | - | |
356 | 291 | | |
357 | | - | |
358 | | - | |
359 | 292 | | |
360 | 293 | | |
361 | 294 | | |
362 | 295 | | |
363 | 296 | | |
364 | 297 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | 298 | | |
387 | | - | |
388 | 299 | | |
389 | 300 | | |
390 | 301 | | |
| |||
418 | 329 | | |
419 | 330 | | |
420 | 331 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | 332 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | 333 | | |
437 | 334 | | |
438 | 335 | | |
| |||
504 | 401 | | |
505 | 402 | | |
506 | 403 | | |
507 | | - | |
508 | 404 | | |
509 | 405 | | |
510 | 406 | | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | 407 | | |
521 | 408 | | |
522 | | - | |
523 | | - | |
524 | 409 | | |
525 | 410 | | |
526 | 411 | | |
| |||
535 | 420 | | |
536 | 421 | | |
537 | 422 | | |
538 | | - | |
| 423 | + | |
539 | 424 | | |
540 | 425 | | |
541 | 426 | | |
| |||
548 | 433 | | |
549 | 434 | | |
550 | 435 | | |
551 | | - | |
552 | 436 | | |
553 | | - | |
554 | 437 | | |
555 | | - | |
| 438 | + | |
556 | 439 | | |
557 | 440 | | |
0 commit comments