rules/react-native/performance.md
This file extends common/performance.md with React Native / Expo specific content.
React.memo; memoize callbacks/values passed to children with useCallback/useMemo only where they prevent real re-renders.FlatList/SectionList, or FlashList (Shopify) for large or heterogeneous lists.keyExtractor, a memoized renderItem, and stable item heights when possible (getItemLayout).initialNumToRender, windowSize, maxToRenderPerBatch for heavy rows..map() inside a ScrollView.expo-image for caching, priority, and placeholders; serve appropriately sized images.react-native-reanimated (runs on the UI thread) over the JS-driven Animated API.Animated, set useNativeDriver: true where supported.InteractionManager.runAfterInteractions for work that can wait until animations finish.