mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add Screenshot Tests for Image border, background, shadows (#45885)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45885 There are some gaps here right now, but Android API 31+ is looking good. Changelog: [Internal] Reviewed By: joevilches Differential Revision: D60731848 fbshipit-source-id: f515270a61a00c362b584f0d1549d14098c2e385
This commit is contained in:
1 parent
28597168aa
commit
9035008427
1 file changed
+8
-4
@@ -1014,9 +1014,10 @@ exports.examples = [
|
||||
},
|
||||
{
|
||||
title: 'Borders',
|
||||
name: 'borders',
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View style={styles.horizontal}>
|
||||
<View style={styles.horizontal} testID="borders-example">
|
||||
<Image
|
||||
source={smallImage}
|
||||
style={[styles.base, styles.background, styles.customBorderColor]}
|
||||
@@ -1027,9 +1028,10 @@ exports.examples = [
|
||||
},
|
||||
{
|
||||
title: 'Border Radius',
|
||||
name: 'border-radius',
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View style={styles.horizontal}>
|
||||
<View style={styles.horizontal} testID="border-radius-example">
|
||||
<Image
|
||||
style={[styles.base, styles.imageWithBorderRadius]}
|
||||
source={fullImage}
|
||||
@@ -1064,9 +1066,10 @@ exports.examples = [
|
||||
},
|
||||
{
|
||||
title: 'Background Color',
|
||||
name: 'background-color',
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View style={styles.horizontal}>
|
||||
<View style={styles.horizontal} testID="background-color-example">
|
||||
<Image source={smallImage} style={styles.base} />
|
||||
<Image
|
||||
style={[styles.base, styles.backgroundColor1]}
|
||||
@@ -1086,9 +1089,10 @@ exports.examples = [
|
||||
},
|
||||
{
|
||||
title: 'Box Shadow',
|
||||
name: 'box-shadow',
|
||||
render: function (): React.Node {
|
||||
return (
|
||||
<View style={styles.horizontal}>
|
||||
<View style={styles.horizontal} testID="box-shadow-example">
|
||||
<Image
|
||||
style={[
|
||||
styles.base,
|
||||
|
||||
Reference in new issue
Block a user