types
This commit is contained in:
@@ -59,7 +59,7 @@ export function ImageEmbed({
|
|||||||
|
|
||||||
// Captured from AutoSizedImage so the peek-commit handler can reuse the same
|
// Captured from AutoSizedImage so the peek-commit handler can reuse the same
|
||||||
// ref + dims that a tap would — keeps the lightbox's return animation intact.
|
// ref + dims that a tap would — keeps the lightbox's return animation intact.
|
||||||
const singleContainerRef = useRef<AnimatedRef<React.Component> | null>(null)
|
const singleContainerRef = useRef<AnimatedRef | null>(null)
|
||||||
const singleDimsRef = useRef<Dimensions | null>(null)
|
const singleDimsRef = useRef<Dimensions | null>(null)
|
||||||
|
|
||||||
if (images.length > 0) {
|
if (images.length > 0) {
|
||||||
@@ -71,7 +71,7 @@ export function ImageEmbed({
|
|||||||
}))
|
}))
|
||||||
const onPress = (
|
const onPress = (
|
||||||
index: number,
|
index: number,
|
||||||
refs: AnimatedRef<React.Component>[],
|
refs: AnimatedRef[],
|
||||||
fetchedDims: (Dimensions | null)[],
|
fetchedDims: (Dimensions | null)[],
|
||||||
) => {
|
) => {
|
||||||
if (postContext) {
|
if (postContext) {
|
||||||
|
|||||||
Reference in New Issue
Block a user