gluestack-ui-v5:performance

Optimizes gluestack-ui v5 React Native apps with memoization, Reanimated animations, and cross-platform patterns.

Updated Sep 13, 2026
One-click install
npx skills add https://github.com/aadilmallick/myfitness-pal-clone --skill gluestack-ui-v5-performance-aadilmallick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gluestack-ui-v5:performance
Source: https://github.com/aadilmallick/myfitness-pal-clone/tree/main/.agents/skills/gluestack-ui-v5/performance
Command: npx skills add https://github.com/aadilmallick/myfitness-pal-clone --skill gluestack-ui-v5-performance-aadilmallick

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? React Native apps built with gluestack-ui v5 often suffer from janky animations, unnecessary rerenders, and broken web compatibility when developers import components directly from react-native or misuse lists and animations. This Skill provides concrete rules and code patterns to prevent these performance and cross-platform pitfalls. ## Core Features & Use Cases - Cross-Platform Component Rules: Enforces using Gluestack wrapper components (KeyboardAvoidingView, SafeAreaView, FlatList) instead of direct react-native imports so apps work on iOS, Android, and web. - Performance Patterns: Provides correct/incorrect code examples for React.memo, useCallback, Reanimated worklets running on the UI thread, FlatList virtualization, and Platform.select usage. - NativeWind v5 / UniWind Guidance: Covers build-level concerns like pinning lightningcss to 1.30.1 and choosing UniWind to eliminate the PostCSS build step. - Use Case: When building a food diary screen with a long entry list and animated progress rings, apply these rules to virtualize the list with FlatList, memoize row components, and run ring animations on the UI thread with Reanimated. ## Quick Start Review my gluestack-ui v5 screen component and fix any performance or cross-platform issues using the performance rules.

Frequently Asked Questions about gluestack-ui-v5:performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize FlatList performance in React Native?

Use FlatList instead of ScrollView with map for any list over about 10 items, since FlatList virtualizes and only renders visible rows. Memoize row components with React.memo and pass stable callbacks via useCallback to prevent rerenders.

How to run animations at 60fps in React Native?

Use Reanimated worklets with useSharedValue and withTiming or withSpring so animations execute on the native UI thread instead of the JavaScript thread. Avoid the legacy Animated API from react-native, which can cause jank under load.

Does gluestack-ui v5 work on web and native?

Yes, gluestack-ui v5 components are designed for iOS, Android, and web, but you must import wrapper components from your ui directory rather than directly from react-native. The KeyboardAvoidingView wrapper, for example, handles web gracefully where keyboard avoidance is unnecessary.

NativeWind v5 vs UniWind for Expo projects?

NativeWind v5 uses Tailwind v4 CSS-first configuration and requires pinning lightningcss to exactly 1.30.1 to avoid build failures. UniWind processes CSS at Metro/Babel time with no PostCSS step, which can reduce build times for simpler Expo-only projects.

Why does my React Native app rerender too often?

Excessive rerenders usually come from inline callbacks creating new function references each render and unmemoized child components. Wrap stable-prop children in React.memo and memoize handlers with useCallback so children only update when their actual props change.