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:
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user