I want to add and image into a View (represented by the black square on the example bellow), the view size depends on screens sizes. I also want an overflow: hidden
on the bottom of my image if the first view is to small
If I try on my image :
width: '100%',
height: undefined,
aspectRatio: 1,
my image is centered, and not anchor to the top.
Any solution ?
2
Answers
You can simply wrap image in a div and define the size of div in css and a overflow:hidden property to that div.
My div css properties.