File tree Expand file tree Collapse file tree 2 files changed +18
-22
lines changed Expand file tree Collapse file tree 2 files changed +18
-22
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ const IconScreen = () => {
16
16
< Icon
17
17
margin-30
18
18
size = { customSize ? size : undefined }
19
- tintColor = { customColor ? ( color as string ) : undefined }
19
+ tintColor = { customColor ? color as string : undefined }
20
20
source = { Assets . icons . search }
21
21
/>
22
22
</ View >
23
+
23
24
< View marginB-s3 row >
24
25
< Text marginR-s2 > Custom Size</ Text >
25
26
< Switch value = { customSize } onValueChange = { setCustomSize } />
@@ -28,6 +29,7 @@ const IconScreen = () => {
28
29
< Text marginB-50 marginT-s2 >
29
30
Custom size: { size }
30
31
</ Text >
32
+
31
33
< View marginB-s3 row >
32
34
< Text marginR-s2 > Custom Color</ Text >
33
35
< Switch value = { customColor } onValueChange = { setCustomColor } />
Original file line number Diff line number Diff line change @@ -201,17 +201,14 @@ const IncubatorSliderScreen = () => {
201
201
< Text text90 $textNeutral >
202
202
DEFAULT
203
203
</ Text >
204
- {
205
- // @ts -ignore
206
- < GradientSlider
207
- color = { color }
208
- containerStyle = { styles . gradientSliderContainer }
209
- onValueChange = { onGradientValueChange }
210
- // @ts -expect-error
211
- ref = { this . gradientSlider }
212
- migrate
213
- />
214
- }
204
+ < GradientSlider
205
+ color = { color }
206
+ containerStyle = { styles . gradientSliderContainer }
207
+ onValueChange = { onGradientValueChange }
208
+ // @ts -expect-error
209
+ ref = { this . gradientSlider }
210
+ migrate
211
+ />
215
212
< View style = { styles . box } >
216
213
< View style = { { flex : 1 , backgroundColor : color , opacity : alpha } } />
217
214
</ View >
@@ -220,16 +217,13 @@ const IncubatorSliderScreen = () => {
220
217
< Text text90 $textNeutral >
221
218
HUE
222
219
</ Text >
223
- {
224
- // @ts -ignore
225
- < GradientSlider
226
- type = { GradientSlider . types . HUE }
227
- color = { COLOR }
228
- containerStyle = { styles . gradientSliderContainer }
229
- onValueChange = { onGradientValueChange }
230
- migrate
231
- />
232
- }
220
+ < GradientSlider
221
+ type = { GradientSlider . types . HUE }
222
+ color = { COLOR }
223
+ containerStyle = { styles . gradientSliderContainer }
224
+ onValueChange = { onGradientValueChange }
225
+ migrate
226
+ />
233
227
< View style = { styles . box } >
234
228
< View style = { { flex : 1 , backgroundColor : color } } />
235
229
</ View >
You can’t perform that action at this time.
0 commit comments