Fix tall image final state

The initial animation frame is still off on both platforms.
This commit is contained in:
Dan Abramov
2024-11-08 03:36:35 +00:00
parent d78d65e290
commit 112504bac7
2 changed files with 15 additions and 4 deletions
@@ -325,10 +325,13 @@ const ImageItem = ({
{translateY: translateY},
{scale},
]
const screenSize = measureSafeArea()
return {
width: '100%',
aspectRatio: imageAspect,
transform: scaleAndMoveTransform.concat(manipulationTransform),
width: screenSize.width,
maxHeight: screenSize.height,
aspectRatio: imageAspect,
alignSelf: 'center',
}
})