Телеграм

Mobile Development: Kotlin, Swift, React Native, Flutter, Dart, Expo, Capacitor

@APP_Mastery Программирование и разработка
Нет в реестре РКН Не иноагент
Mobile Dev Hub: iOS, Android & Cross-Platform Coding Tips & Tools

Buy ads: https://telega.io/c/APP_Mastery

Статистика обновлена 13.11.2026 в 23:04 · 174 просмотра страницы · Хотите больше просмотров?

Подписчики39 670 -21 за 2 дня
Охват поста0 0% от подписчиков
ERR за месяц0%
ERR за 24 часа0%

Динамика за 30 дней

Рекламные публикации

Рекламных публикаций не найденоЗа последнее время мы не нашли на площадке ни одного рекламного поста.

Последние публикации

Все посты канала →
Открыть пост ↗
The useEffect clean-up callback executes on every render

Most people think it executes only when the component unmounts, but that’s not true.

On every render, the clean-up callback from the previous render executes just before the next effect execution.

Let’s see an example:


function SomeComponent() {
const [count, setCount] = useState(0)

useEffect(() => {
console.log('The current count is ', count)
return () => {
console.log('The previous count is ', count)
}
})

return <button onClick={() => setCount(count + 1)}>Click me</button>
}


This logs the following:


// Component mounts
The current count is 0

// Click
The previous count is 0
The current count is 1

// Click
The previous count is 1
The current count is 2

// Component unmounts
The previous count is 2


🚀 Why This Matters?

This behavior is essential for managing subscriptions, event listeners, and cleanup logic effectively.

Adding a dependency array ensures the effect runs only when needed
👁 19 тыс. ❤ 45🔥 5👍 2 ↻ 23 1 марта
Открыть пост ↗
🚀 Full-Screen Image Viewer in Expo Made Easy

Andrew Chester shows how to implement a sleek, full-screen image viewer with zoom using Expo and the @likashefqet/react-native-image-zoom library.

Key Highlights:

- Install @likashefqet/react-native-image-zoom + react-native-reanimated + gesture-handler
- Wrap your image in <Zoomable> to enable pinch & double-tap zoom
- Build a reusable overlay using ImageProvider + ImageView + useImperativeHandle for a smooth full-screen experience

Perfect for apps where users need to inspect image details—just like Instagram or Facebook.

https://medium.com/@andrew.chester/react-native-expo-full-screen-image-viewer-with-zoom-made-simple-d374081acc6d
👁 29 тыс. ❤ 15🔥 8👍 2 ↻ 21 3 ноября 2025