Support animating out of different index

This commit is contained in:
Dan Abramov
2024-11-02 04:08:23 +00:00
parent b472d54b34
commit 24283427fd
8 changed files with 70 additions and 51 deletions
@@ -75,6 +75,7 @@ export function ProfileSubpageHeader({
{
uri: avatar,
thumbUri: avatar,
thumbRect: null,
dimensions: {
// It's fine if it's actually smaller but we know it's 1:1.
height: 1000,
@@ -83,7 +84,6 @@ export function ProfileSubpageHeader({
},
],
index: 0,
thumbDims: null,
})
}
}, [openLightbox, avatar])