| name | mobile_react_native |
| description | React Native best practices, hooks, navigation ve performance optimization. |
📱 Mobile React Native
React Native best practices ve performance optimization.
📁 1. Proje Yapısı
src/
├── components/
│ ├── common/ # Reusable
│ └── screens/ # Screen components
├── hooks/ # Custom hooks
├── services/ # API, storage
├── store/ # State (Zustand)
├── navigation/
└── App.tsx
⚡ 2. Performance
<FlatList
data={items}
keyExtractor={(item) => item.id}
removeClippedSubviews={true}
maxToRenderPerBatch={10}
windowSize={5}
getItemLayout={(data, index) => ({
length: ITEM_HEIGHT,
offset: ITEM_HEIGHT * index,
index,
})}
/>
const Component = React.memo(({ data }) => { });
const callback = useCallback(() => {}, [deps]);
const value = ( (), [deps]);