/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/common-adapters/swipeable-row.shared.tsx
21 строка
678 B
chrisnojima
fix(chat): stop recycled message rows from leaking state and stale heights (#29401)
09 июл 2026, 23:34
Не верифицирован
09 июл 2026, 23:34
1d8109c
Код
Авторство
О чём код?
import type * as React from 'react' import type {Animated, ViewStyle} from 'react-native' export type SwipeableMethods = { close: () => void reset: () => void } export type Props = { children?: React.ReactNode renderRightActions?: ( progress: Animated.AnimatedDivision<number>, translation: Animated.Value ) => React.ReactNode onSwipeableOpenStartDrag?: () => void onSwipeableWillOpen?: (direction: 'left') => void containerStyle?: ViewStyle // When false, the swipe pan handlers are not attached (children stay mounted, so toggling this // does NOT remount the row). Used to shed per-row touch evaluation during fast scroll. enabled?: boolean }