vercel-react-native-skills
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
Install
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-native-skills- title
- Keep List Items Lightweight
- impact
- HIGH
- impactDescription
- reduces render time for visible items during scroll
- tags
- lists, performance, virtualization, hooks
Keep List Items Lightweight
List items should be as inexpensive as possible to render. Minimize hooks, avoid queries, and limit React Context access. Virtualized lists render many items during scroll—expensive items cause jank.
Incorrect (heavy list item):
Correct (lightweight list item):
Move data fetching to parent:
For shared values, use Zustand selectors instead of Context:
Guidelines for list items:
- No queries or data fetching
- No expensive computations (move to parent or memoize at parent level)
- Prefer Zustand selectors over React Context
- Minimize useState/useEffect hooks
- Pass pre-computed values as props
The goal: list items should be simple rendering functions that take props and return JSX.