@@ -1133,7 +1133,6 @@ exports[`Button container size should have no padding of button is an icon butto
1133
1133
[
1134
1134
{
1135
1135
" marginRight" : 8 ,
1136
- " tintColor" : " #FFFFFF" ,
1137
1136
},
1138
1137
undefined ,
1139
1138
],
@@ -2257,9 +2256,7 @@ exports[`Button icon should apply color on icon 1`] = `
2257
2256
" tintColor" : " green" ,
2258
2257
},
2259
2258
[
2260
- {
2261
- " tintColor" : " green" ,
2262
- },
2259
+ {},
2263
2260
undefined ,
2264
2261
],
2265
2262
]
@@ -2327,9 +2324,7 @@ exports[`Button icon should apply color on icon 2`] = `
2327
2324
" tintColor" : " #FC3D2F" ,
2328
2325
},
2329
2326
[
2330
- {
2331
- " tintColor" : " #FC3D2F" ,
2332
- },
2327
+ {},
2333
2328
undefined ,
2334
2329
],
2335
2330
]
@@ -2339,7 +2334,75 @@ exports[`Button icon should apply color on icon 2`] = `
2339
2334
</View >
2340
2335
` ;
2341
2336
2342
- exports [` Button icon should include custom iconStyle provided as a prop 1` ] = `
2337
+ exports [` Button icon should apply the right icon color 1` ] = `
2338
+ <View
2339
+ accessibilityRole = " button"
2340
+ accessibilityState = {
2341
+ {
2342
+ " busy" : undefined ,
2343
+ " checked" : undefined ,
2344
+ " disabled" : undefined ,
2345
+ " expanded" : undefined ,
2346
+ " selected" : undefined ,
2347
+ }
2348
+ }
2349
+ accessibilityValue = {
2350
+ {
2351
+ " max" : undefined ,
2352
+ " min" : undefined ,
2353
+ " now" : undefined ,
2354
+ " text" : undefined ,
2355
+ }
2356
+ }
2357
+ accessible = { true }
2358
+ collapsable = { false }
2359
+ focusable = { true }
2360
+ onClick = { [Function ]}
2361
+ onLayout = { [Function ]}
2362
+ onResponderGrant = { [Function ]}
2363
+ onResponderMove = { [Function ]}
2364
+ onResponderRelease = { [Function ]}
2365
+ onResponderTerminate = { [Function ]}
2366
+ onResponderTerminationRequest = { [Function ]}
2367
+ onStartShouldSetResponder = { [Function ]}
2368
+ style = {
2369
+ {
2370
+ " alignItems" : " center" ,
2371
+ " backgroundColor" : " #5A48F5" ,
2372
+ " borderRadius" : 999 ,
2373
+ " flexDirection" : " row" ,
2374
+ " justifyContent" : " center" ,
2375
+ " minWidth" : undefined ,
2376
+ " opacity" : 1 ,
2377
+ " paddingHorizontal" : undefined ,
2378
+ " paddingVertical" : undefined ,
2379
+ }
2380
+ }
2381
+ >
2382
+ <Image
2383
+ accessibilityRole = " image"
2384
+ accessible = { false }
2385
+ source = { 12 }
2386
+ style = {
2387
+ [
2388
+ undefined ,
2389
+ undefined ,
2390
+ undefined ,
2391
+ {
2392
+ " tintColor" : " red" ,
2393
+ },
2394
+ [
2395
+ {},
2396
+ undefined ,
2397
+ ],
2398
+ ]
2399
+ }
2400
+ testID = " undefined.icon"
2401
+ />
2402
+ </View >
2403
+ ` ;
2404
+
2405
+ exports [` Button icon should apply the right icon color 2` ] = `
2343
2406
<View
2344
2407
accessibilityRole = " button"
2345
2408
accessibilityState = {
@@ -2397,9 +2460,147 @@ exports[`Button icon should include custom iconStyle provided as a prop 1`] = `
2397
2460
" tintColor" : " #FFFFFF" ,
2398
2461
},
2399
2462
[
2463
+ {},
2464
+ {
2465
+ " tintColor" : " #ffee22" ,
2466
+ },
2467
+ ],
2468
+ ]
2469
+ }
2470
+ testID = " undefined.icon"
2471
+ />
2472
+ </View >
2473
+ ` ;
2474
+
2475
+ exports [` Button icon should apply the right icon color 3` ] = `
2476
+ <View
2477
+ accessibilityRole = " button"
2478
+ accessibilityState = {
2479
+ {
2480
+ " busy" : undefined ,
2481
+ " checked" : undefined ,
2482
+ " disabled" : undefined ,
2483
+ " expanded" : undefined ,
2484
+ " selected" : undefined ,
2485
+ }
2486
+ }
2487
+ accessibilityValue = {
2488
+ {
2489
+ " max" : undefined ,
2490
+ " min" : undefined ,
2491
+ " now" : undefined ,
2492
+ " text" : undefined ,
2493
+ }
2494
+ }
2495
+ accessible = { true }
2496
+ collapsable = { false }
2497
+ focusable = { true }
2498
+ onClick = { [Function ]}
2499
+ onLayout = { [Function ]}
2500
+ onResponderGrant = { [Function ]}
2501
+ onResponderMove = { [Function ]}
2502
+ onResponderRelease = { [Function ]}
2503
+ onResponderTerminate = { [Function ]}
2504
+ onResponderTerminationRequest = { [Function ]}
2505
+ onStartShouldSetResponder = { [Function ]}
2506
+ style = {
2507
+ {
2508
+ " alignItems" : " center" ,
2509
+ " backgroundColor" : " #5A48F5" ,
2510
+ " borderRadius" : 999 ,
2511
+ " flexDirection" : " row" ,
2512
+ " justifyContent" : " center" ,
2513
+ " minWidth" : undefined ,
2514
+ " opacity" : 1 ,
2515
+ " paddingHorizontal" : undefined ,
2516
+ " paddingVertical" : undefined ,
2517
+ }
2518
+ }
2519
+ >
2520
+ <Image
2521
+ accessibilityRole = " image"
2522
+ accessible = { false }
2523
+ source = { 12 }
2524
+ style = {
2525
+ [
2526
+ undefined ,
2527
+ undefined ,
2528
+ undefined ,
2529
+ {
2530
+ " tintColor" : " red" ,
2531
+ },
2532
+ [
2533
+ {},
2400
2534
{
2401
- " tintColor" : " #FFFFFF " ,
2535
+ " tintColor" : " #ffee22 " ,
2402
2536
},
2537
+ ],
2538
+ ]
2539
+ }
2540
+ testID = " undefined.icon"
2541
+ />
2542
+ </View >
2543
+ ` ;
2544
+
2545
+ exports [` Button icon should include custom iconStyle provided as a prop 1` ] = `
2546
+ <View
2547
+ accessibilityRole = " button"
2548
+ accessibilityState = {
2549
+ {
2550
+ " busy" : undefined ,
2551
+ " checked" : undefined ,
2552
+ " disabled" : undefined ,
2553
+ " expanded" : undefined ,
2554
+ " selected" : undefined ,
2555
+ }
2556
+ }
2557
+ accessibilityValue = {
2558
+ {
2559
+ " max" : undefined ,
2560
+ " min" : undefined ,
2561
+ " now" : undefined ,
2562
+ " text" : undefined ,
2563
+ }
2564
+ }
2565
+ accessible = { true }
2566
+ collapsable = { false }
2567
+ focusable = { true }
2568
+ onClick = { [Function ]}
2569
+ onLayout = { [Function ]}
2570
+ onResponderGrant = { [Function ]}
2571
+ onResponderMove = { [Function ]}
2572
+ onResponderRelease = { [Function ]}
2573
+ onResponderTerminate = { [Function ]}
2574
+ onResponderTerminationRequest = { [Function ]}
2575
+ onStartShouldSetResponder = { [Function ]}
2576
+ style = {
2577
+ {
2578
+ " alignItems" : " center" ,
2579
+ " backgroundColor" : " #5A48F5" ,
2580
+ " borderRadius" : 999 ,
2581
+ " flexDirection" : " row" ,
2582
+ " justifyContent" : " center" ,
2583
+ " minWidth" : undefined ,
2584
+ " opacity" : 1 ,
2585
+ " paddingHorizontal" : undefined ,
2586
+ " paddingVertical" : undefined ,
2587
+ }
2588
+ }
2589
+ >
2590
+ <Image
2591
+ accessibilityRole = " image"
2592
+ accessible = { false }
2593
+ source = { 12 }
2594
+ style = {
2595
+ [
2596
+ undefined ,
2597
+ undefined ,
2598
+ undefined ,
2599
+ {
2600
+ " tintColor" : " #FFFFFF" ,
2601
+ },
2602
+ [
2603
+ {},
2403
2604
{
2404
2605
" marginRight" : 9 ,
2405
2606
" tintColor" : " red" ,
@@ -2472,9 +2673,7 @@ exports[`Button icon should return icon style according to different variations
2472
2673
" tintColor" : " #5A48F5" ,
2473
2674
},
2474
2675
[
2475
- {
2476
- " tintColor" : " #5A48F5" ,
2477
- },
2676
+ {},
2478
2677
undefined ,
2479
2678
],
2480
2679
]
@@ -2542,9 +2741,7 @@ exports[`Button icon should return icon style according to different variations
2542
2741
" tintColor" : " #5A48F5" ,
2543
2742
},
2544
2743
[
2545
- {
2546
- " tintColor" : " #5A48F5" ,
2547
- },
2744
+ {},
2548
2745
undefined ,
2549
2746
],
2550
2747
]
@@ -2612,9 +2809,7 @@ exports[`Button icon should return icon style according to different variations
2612
2809
" tintColor" : " #FFFFFF" ,
2613
2810
},
2614
2811
[
2615
- {
2616
- " tintColor" : " #FFFFFF" ,
2617
- },
2812
+ {},
2618
2813
undefined ,
2619
2814
],
2620
2815
]
@@ -3856,9 +4051,7 @@ exports[`Button labelColor should return undefined color if this is an icon butt
3856
4051
" tintColor" : " #FFFFFF" ,
3857
4052
},
3858
4053
[
3859
- {
3860
- " tintColor" : " #FFFFFF" ,
3861
- },
4054
+ {},
3862
4055
undefined ,
3863
4056
],
3864
4057
]
0 commit comments