mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-29 00:32:53 +02:00
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
23 lines
642 B
TypeScript
23 lines
642 B
TypeScript
import { Platform } from 'react-native';
|
|
|
|
// Scroll-related constants
|
|
export const SCROLL_THRESHOLD = 100;
|
|
export const SCROLL_TO_INDEX_DELAY = 100;
|
|
export const CLEAR_LAST_VIEWED_DELAY = 600;
|
|
|
|
// Gesture-related constants
|
|
export const PINCH_DEBOUNCE_MS = 300;
|
|
export const PINCH_OUT_SCALE = 1.15;
|
|
export const PINCH_IN_SCALE = 0.85;
|
|
|
|
// Prefetch-related constants
|
|
export const PREFETCH_DEBOUNCE_MS = 500;
|
|
|
|
// FlatList performance props
|
|
export const FLATLIST_PERFORMANCE_PROPS = {
|
|
removeClippedSubviews: Platform.OS === 'android',
|
|
maxToRenderPerBatch: 10,
|
|
windowSize: 5,
|
|
initialNumToRender: 6,
|
|
updateCellsBatchingPeriod: 50,
|
|
} as const;
|