Skip to content

Commit 0566943

Browse files
example
1 parent 3cee86d commit 0566943

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

packages/react-native/ReactCommon/react/renderer/components/view/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ add_library(rrc_view OBJECT ${rrc_view_SRC})
2222
react_native_android_selector(platform_DIR
2323
${CMAKE_CURRENT_SOURCE_DIR}/platform/android/
2424
${CMAKE_CURRENT_SOURCE_DIR}/platform/cxx/)
25-
target_include_directories(rrc_view PUBLIC ${REACT_COMMON_DIR} ${platform_DIR})
25+
react_native_android_selector(imagemanager_platform_DIR
26+
${REACT_COMMON_DIR}/react/renderer/imagemanager/platform/android/
27+
${REACT_COMMON_DIR}/react/renderer/imagemanager/platform/cxx/)
28+
target_include_directories(rrc_view PUBLIC ${REACT_COMMON_DIR} ${platform_DIR} ${imagemanager_platform_DIR})
2629

2730
target_link_libraries(rrc_view
2831
folly_runtime

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)