unicorn-demo-app 6.27.3 → 6.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -819,7 +819,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
819
819
|
"width": 50,
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
|
-
height={50}
|
|
823
822
|
onError={[Function]}
|
|
824
823
|
source={
|
|
825
824
|
Object {
|
|
@@ -830,6 +829,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
830
829
|
Array [
|
|
831
830
|
undefined,
|
|
832
831
|
undefined,
|
|
832
|
+
Object {
|
|
833
|
+
"width": 50,
|
|
834
|
+
},
|
|
835
|
+
Object {
|
|
836
|
+
"height": 50,
|
|
837
|
+
},
|
|
833
838
|
undefined,
|
|
834
839
|
undefined,
|
|
835
840
|
undefined,
|
|
@@ -856,7 +861,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
856
861
|
]
|
|
857
862
|
}
|
|
858
863
|
testID="undefined.image"
|
|
859
|
-
width={50}
|
|
860
864
|
/>
|
|
861
865
|
<View
|
|
862
866
|
accessibilityLabel="badge"
|
|
@@ -1049,7 +1053,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1049
1053
|
"width": 40,
|
|
1050
1054
|
}
|
|
1051
1055
|
}
|
|
1052
|
-
height={40}
|
|
1053
1056
|
onError={[Function]}
|
|
1054
1057
|
source={
|
|
1055
1058
|
Object {
|
|
@@ -1060,6 +1063,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1060
1063
|
Array [
|
|
1061
1064
|
undefined,
|
|
1062
1065
|
undefined,
|
|
1066
|
+
Object {
|
|
1067
|
+
"width": 40,
|
|
1068
|
+
},
|
|
1069
|
+
Object {
|
|
1070
|
+
"height": 40,
|
|
1071
|
+
},
|
|
1063
1072
|
undefined,
|
|
1064
1073
|
undefined,
|
|
1065
1074
|
undefined,
|
|
@@ -1086,7 +1095,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1086
1095
|
]
|
|
1087
1096
|
}
|
|
1088
1097
|
testID="undefined.image"
|
|
1089
|
-
width={40}
|
|
1090
1098
|
/>
|
|
1091
1099
|
<View
|
|
1092
1100
|
accessibilityLabel="badge"
|
|
@@ -1290,7 +1298,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1290
1298
|
accessibilityRole="image"
|
|
1291
1299
|
accessible={false}
|
|
1292
1300
|
assetGroup="icons"
|
|
1293
|
-
height={60}
|
|
1294
1301
|
onError={[Function]}
|
|
1295
1302
|
onLoad={[Function]}
|
|
1296
1303
|
source={
|
|
@@ -1302,6 +1309,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1302
1309
|
Array [
|
|
1303
1310
|
undefined,
|
|
1304
1311
|
undefined,
|
|
1312
|
+
Object {
|
|
1313
|
+
"width": 60,
|
|
1314
|
+
},
|
|
1315
|
+
Object {
|
|
1316
|
+
"height": 60,
|
|
1317
|
+
},
|
|
1305
1318
|
undefined,
|
|
1306
1319
|
undefined,
|
|
1307
1320
|
undefined,
|
|
@@ -1333,7 +1346,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1333
1346
|
]
|
|
1334
1347
|
}
|
|
1335
1348
|
testID="undefined.image"
|
|
1336
|
-
width={60}
|
|
1337
1349
|
/>
|
|
1338
1350
|
</View>
|
|
1339
1351
|
</View>
|
|
@@ -1460,7 +1472,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1460
1472
|
"width": 70,
|
|
1461
1473
|
}
|
|
1462
1474
|
}
|
|
1463
|
-
height={70}
|
|
1464
1475
|
onError={[Function]}
|
|
1465
1476
|
source={
|
|
1466
1477
|
Object {
|
|
@@ -1471,6 +1482,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1471
1482
|
Array [
|
|
1472
1483
|
undefined,
|
|
1473
1484
|
undefined,
|
|
1485
|
+
Object {
|
|
1486
|
+
"width": 70,
|
|
1487
|
+
},
|
|
1488
|
+
Object {
|
|
1489
|
+
"height": 70,
|
|
1490
|
+
},
|
|
1474
1491
|
undefined,
|
|
1475
1492
|
undefined,
|
|
1476
1493
|
undefined,
|
|
@@ -1497,7 +1514,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1497
1514
|
]
|
|
1498
1515
|
}
|
|
1499
1516
|
testID="undefined.image"
|
|
1500
|
-
width={70}
|
|
1501
1517
|
/>
|
|
1502
1518
|
<View
|
|
1503
1519
|
accessibilityLabel="badge"
|
|
@@ -1690,7 +1706,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1690
1706
|
"width": 60,
|
|
1691
1707
|
}
|
|
1692
1708
|
}
|
|
1693
|
-
height={60}
|
|
1694
1709
|
onError={[Function]}
|
|
1695
1710
|
source={
|
|
1696
1711
|
Object {
|
|
@@ -1701,6 +1716,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1701
1716
|
Array [
|
|
1702
1717
|
undefined,
|
|
1703
1718
|
undefined,
|
|
1719
|
+
Object {
|
|
1720
|
+
"width": 60,
|
|
1721
|
+
},
|
|
1722
|
+
Object {
|
|
1723
|
+
"height": 60,
|
|
1724
|
+
},
|
|
1704
1725
|
undefined,
|
|
1705
1726
|
undefined,
|
|
1706
1727
|
undefined,
|
|
@@ -1727,7 +1748,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1727
1748
|
]
|
|
1728
1749
|
}
|
|
1729
1750
|
testID="undefined.image"
|
|
1730
|
-
width={60}
|
|
1731
1751
|
/>
|
|
1732
1752
|
<View
|
|
1733
1753
|
accessibilityLabel="badge"
|
|
@@ -1827,6 +1847,8 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1827
1847
|
undefined,
|
|
1828
1848
|
undefined,
|
|
1829
1849
|
undefined,
|
|
1850
|
+
undefined,
|
|
1851
|
+
undefined,
|
|
1830
1852
|
false,
|
|
1831
1853
|
Object {
|
|
1832
1854
|
"backgroundColor": "#FFC50D",
|
|
@@ -1962,7 +1984,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1962
1984
|
"width": 48,
|
|
1963
1985
|
}
|
|
1964
1986
|
}
|
|
1965
|
-
height={48}
|
|
1966
1987
|
onError={[Function]}
|
|
1967
1988
|
source={
|
|
1968
1989
|
Object {
|
|
@@ -1973,6 +1994,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1973
1994
|
Array [
|
|
1974
1995
|
undefined,
|
|
1975
1996
|
undefined,
|
|
1997
|
+
Object {
|
|
1998
|
+
"width": 48,
|
|
1999
|
+
},
|
|
2000
|
+
Object {
|
|
2001
|
+
"height": 48,
|
|
2002
|
+
},
|
|
1976
2003
|
undefined,
|
|
1977
2004
|
undefined,
|
|
1978
2005
|
undefined,
|
|
@@ -1999,7 +2026,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
1999
2026
|
]
|
|
2000
2027
|
}
|
|
2001
2028
|
testID="undefined.image"
|
|
2002
|
-
width={48}
|
|
2003
2029
|
/>
|
|
2004
2030
|
</View>
|
|
2005
2031
|
</View>
|
|
@@ -2162,7 +2188,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2162
2188
|
"width": 50,
|
|
2163
2189
|
}
|
|
2164
2190
|
}
|
|
2165
|
-
height={50}
|
|
2166
2191
|
onError={[Function]}
|
|
2167
2192
|
onLoadEnd={[Function]}
|
|
2168
2193
|
onLoadStart={[Function]}
|
|
@@ -2175,6 +2200,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2175
2200
|
Array [
|
|
2176
2201
|
undefined,
|
|
2177
2202
|
undefined,
|
|
2203
|
+
Object {
|
|
2204
|
+
"width": 50,
|
|
2205
|
+
},
|
|
2206
|
+
Object {
|
|
2207
|
+
"height": 50,
|
|
2208
|
+
},
|
|
2178
2209
|
undefined,
|
|
2179
2210
|
undefined,
|
|
2180
2211
|
undefined,
|
|
@@ -2201,7 +2232,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2201
2232
|
]
|
|
2202
2233
|
}
|
|
2203
2234
|
testID="undefined.image"
|
|
2204
|
-
width={50}
|
|
2205
2235
|
/>
|
|
2206
2236
|
</View>
|
|
2207
2237
|
</View>
|
|
@@ -2364,7 +2394,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2364
2394
|
"width": 50,
|
|
2365
2395
|
}
|
|
2366
2396
|
}
|
|
2367
|
-
height={50}
|
|
2368
2397
|
onError={[Function]}
|
|
2369
2398
|
onLoadEnd={[Function]}
|
|
2370
2399
|
onLoadStart={[Function]}
|
|
@@ -2377,6 +2406,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2377
2406
|
Array [
|
|
2378
2407
|
undefined,
|
|
2379
2408
|
undefined,
|
|
2409
|
+
Object {
|
|
2410
|
+
"width": 50,
|
|
2411
|
+
},
|
|
2412
|
+
Object {
|
|
2413
|
+
"height": 50,
|
|
2414
|
+
},
|
|
2380
2415
|
undefined,
|
|
2381
2416
|
undefined,
|
|
2382
2417
|
undefined,
|
|
@@ -2403,7 +2438,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2403
2438
|
]
|
|
2404
2439
|
}
|
|
2405
2440
|
testID="undefined.image"
|
|
2406
|
-
width={50}
|
|
2407
2441
|
/>
|
|
2408
2442
|
</View>
|
|
2409
2443
|
</View>
|
|
@@ -2529,7 +2563,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2529
2563
|
"width": 50,
|
|
2530
2564
|
}
|
|
2531
2565
|
}
|
|
2532
|
-
height={50}
|
|
2533
2566
|
onError={[Function]}
|
|
2534
2567
|
source={
|
|
2535
2568
|
Object {
|
|
@@ -2540,6 +2573,12 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2540
2573
|
Array [
|
|
2541
2574
|
undefined,
|
|
2542
2575
|
undefined,
|
|
2576
|
+
Object {
|
|
2577
|
+
"width": 50,
|
|
2578
|
+
},
|
|
2579
|
+
Object {
|
|
2580
|
+
"height": 50,
|
|
2581
|
+
},
|
|
2543
2582
|
undefined,
|
|
2544
2583
|
undefined,
|
|
2545
2584
|
undefined,
|
|
@@ -2566,7 +2605,6 @@ exports[`AvatarScreen renders screen 1`] = `
|
|
|
2566
2605
|
]
|
|
2567
2606
|
}
|
|
2568
2607
|
testID="undefined.image"
|
|
2569
|
-
width={50}
|
|
2570
2608
|
/>
|
|
2571
2609
|
</View>
|
|
2572
2610
|
</View>
|
|
@@ -121,7 +121,9 @@ class ImageScreen extends Component<{}, State> {
|
|
|
121
121
|
cover={cover}
|
|
122
122
|
overlayType={overlayType !== 'none' ? overlayType : undefined}
|
|
123
123
|
overlayIntensity={overlayIntensity}
|
|
124
|
-
style={!cover && {width: DEFAULT_SIZE, height: DEFAULT_SIZE}}
|
|
124
|
+
// style={!cover && {width: DEFAULT_SIZE, height: DEFAULT_SIZE}}
|
|
125
|
+
width={!cover ? DEFAULT_SIZE : undefined}
|
|
126
|
+
height={!cover ? DEFAULT_SIZE : undefined}
|
|
125
127
|
customOverlayContent={this.renderOverlayContent()}
|
|
126
128
|
{...{[`margin-${margin}`]: true}}
|
|
127
129
|
/>
|