Wire up known dimensions to the lightbox

This commit is contained in:
Dan Abramov
2024-11-01 02:30:38 +00:00
parent 0ae5033147
commit 79a61adef7
9 changed files with 38 additions and 13 deletions
+11 -1
View File
@@ -72,7 +72,17 @@ export function ProfileSubpageHeader({
) {
openLightbox({
type: 'images',
images: [{uri: avatar, thumbUri: avatar}],
images: [
{
uri: avatar,
thumbUri: avatar,
dimensions: {
// It's fine if it's actually smaller but we know it's 1:1.
height: 1000,
width: 1000,
},
},
],
index: 0,
thumbDims: null,
})