TP-55615 | Added support for aspect ratio in images (#310)

Co-authored-by: saksham <saksham>
Co-authored-by: Saksham Mahajan <saksham.mahajan@navi.com>
This commit is contained in:
Ashutosh Y
2024-02-02 15:48:18 +05:30
committed by GitHub
parent 767a9f445d
commit 833e171352
7 changed files with 116 additions and 2 deletions

View File

@@ -14662,5 +14662,29 @@
}
}
}
},
"aspectRatioMock": {
"data": {
"background_image": {
"iconUrl": "https://public-assets.prod.navi-sa.in/investment-tab/Investment+Tab+visual+assets+2/Investment+tab+banners/amc_no_reward_banner.webp",
"viewType": "Image",
"placeholderIcon": "IMAGE_PLACEHOLDER_XX_LARGE"
}
},
"parentComposeView": [
{
"property": {
"width": "80",
"height": "10",
"aspectRatioProperties": {
"aspectRatio": 0.66,
"screenWidthFactor": 0.5
},
"layoutId": "background_image",
"viewType": "Image",
"contentScale": "FillBounds"
}
}
]
}
}