diff --git a/packages/pluggableWidgets/background-image-native/src/BackgroundImage.tsx b/packages/pluggableWidgets/background-image-native/src/BackgroundImage.tsx index 7870f31d1..a87a50c40 100644 --- a/packages/pluggableWidgets/background-image-native/src/BackgroundImage.tsx +++ b/packages/pluggableWidgets/background-image-native/src/BackgroundImage.tsx @@ -9,7 +9,7 @@ import { BackgroundImageProps } from "../typings/BackgroundImageProps"; export function BackgroundImage(props: BackgroundImageProps): JSX.Element | null { const styles = flattenStyles(defaultBackgroundImageStyle, props.style); - const { image, name, resizeMode } = props; + const { image, defaultImage, name, resizeMode } = props; let opacity = Number(props.opacity.toFixed()); if (opacity < 0) { @@ -18,15 +18,17 @@ export function BackgroundImage(props: BackgroundImageProps - + {props.content} ); diff --git a/packages/pluggableWidgets/background-image-native/src/BackgroundImage.xml b/packages/pluggableWidgets/background-image-native/src/BackgroundImage.xml index e49cc3ae7..5e416e4c3 100644 --- a/packages/pluggableWidgets/background-image-native/src/BackgroundImage.xml +++ b/packages/pluggableWidgets/background-image-native/src/BackgroundImage.xml @@ -11,6 +11,10 @@ Image + + Default image + + Resize mode Cover: scale to cover space. Contain: scale to fit in space. Stretch: stretched to fit space. Center: centered and fit in space. For more information see the help page. diff --git a/packages/pluggableWidgets/background-image-native/typings/BackgroundImageProps.d.ts b/packages/pluggableWidgets/background-image-native/typings/BackgroundImageProps.d.ts index c5c07b9b5..3924f72e8 100644 --- a/packages/pluggableWidgets/background-image-native/typings/BackgroundImageProps.d.ts +++ b/packages/pluggableWidgets/background-image-native/typings/BackgroundImageProps.d.ts @@ -13,6 +13,7 @@ export interface BackgroundImageProps