Skip to content

Commit 950d2d6

Browse files
example
1 parent 950bd92 commit 950d2d6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/rn-tester/js/examples/BackgroundImage/BackgroundImageExample.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,4 +459,22 @@ exports.examples = [
459459
);
460460
},
461461
},
462+
{
463+
title: 'URL Image',
464+
name: 'url-image',
465+
render(): React.Node {
466+
return (
467+
<BackgroundImageBox
468+
style={{
469+
width: 200,
470+
height: 200,
471+
experimental_backgroundImage:
472+
'url(https://reactnative.dev/img/tiny_logo.png)',
473+
experimental_backgroundRepeat: 'no-repeat',
474+
}}
475+
testID="background-image-url"
476+
/>
477+
);
478+
},
479+
},
462480
] as Array<RNTesterModuleExample>;

0 commit comments

Comments
 (0)