File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
react-native/ReactCommon/react/renderer/components/view
rn-tester/js/examples/BackgroundImage Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ add_library(rrc_view OBJECT ${rrc_view_SRC})
2222react_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
2730target_link_libraries (rrc_view
2831 folly_runtime
Original file line number Diff line number Diff 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 > ;
You can’t perform that action at this time.
0 commit comments