К основному содержанию
скилл CX Codex

react-native-elements — скилл для Claude Code: советы и установка

Скилл подсказывает, как применять React Native Elements: настраивать темы, выбирать компоненты и собирать производительные списки. Пригодится при разработке и проверке React Native-приложений.

MIT 265 установок ★ 227 обновлён 2026-08-15

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add pproenca/dot-skills --skill react-native-elements -a claude-code
Открыть на GitHub

Что делает react-native-elements

Скилл содержит рекомендации по React Native Elements, сгруппированные по приоритету: от настройки темы и выбора компонентов до обработки событий и продвинутых приёмов. В руководстве есть правила для ThemeProvider, createTheme, ListItem, Input, SearchBar и списков на FlatList.

При работе со списками скилл советует мемоизировать элементы, задавать keyExtractor и использовать getItemLayout для фиксированной высоты строк. Для длинного списка это означает, что стоит выбрать FlatList, а не ScrollView. Подробные объяснения и примеры кода лежат в отдельных файлах references/.

Скилл также охватывает цветовые темы, стили, обработчики и настройки компонентов. Он рассчитан на проекты с React Native Elements: его советы относятся к компонентам RNE и не заменяют общие рекомендации для любой библиотеки интерфейса.

Какие задачи решает

  • настроить ThemeProvider и тему через createTheme
  • выбрать компонент RNE для строки списка или поля формы
  • снизить лишние перерисовки элементов FlatList
  • проверить обработчики и стили компонентов React Native Elements

Примеры запросов агенту

  • Настрой тему приложения с React Native Elements через ThemeProvider и createTheme.
  • Проверь список на FlatList с ListItem и предложи подходящие настройки производительности.
  • Проверь поля формы на Input и SearchBar и найди ошибки в использовании компонентов RNE.

Как установить react-native-elements

1Через Skills CLI (Vercel)

npx skills add pproenca/dot-skills --skill react-native-elements -a claude-code

2Вручную: положить файлы

~/.claude/skills/react-native-elements/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/react-native-elements/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о react-native-elements

Как установить react-native-elements в Claude Code?

Выполните npx skills add pproenca/dot-skills --skill react-native-elements -a claude-code. Файл скилла находится по пути ~/.claude/skills/react-native-elements/SKILL.md.

Что делает react-native-elements?

Он даёт рекомендации по настройке тем, выбору компонентов React Native Elements и производительности списков. Также охватывает стили и обработчики событий.

Как скилл помогает настроить производительность FlatList?

Он рекомендует мемоизировать ListItem, задавать keyExtractor и извлекать renderItem с помощью useCallback. Для элементов фиксированной высоты описано применение getItemLayout.

Исходный текст

SKILL.md · MIT
---
name: react-native-elements
description: React Native Elements UI component library best practices for performance, theming, and proper component usage. Use when building React Native apps with RNE, configuring themes, optimizing lists with ListItem, or reviewing RNE component code.
---

# Community React Native Elements Best Practices

Comprehensive best practices guide for React Native Elements applications. Contains 45 rules across 8 categories, prioritized by impact to guide component usage, theming, and performance optimization.

## When to Apply

Reference these guidelines when:
- Setting up React Native Elements in a new project
- Configuring ThemeProvider and createTheme
- Building lists with ListItem components
- Implementing form inputs with Input and SearchBar
- Optimizing FlatList performance with RNE components
- Reviewing code using React Native Elements

## Rule Categories by Priority

| Priority | Category | Impact | Prefix |
|----------|----------|--------|--------|
| 1 | Import & Setup | CRITICAL | `setup-` |
| 2 | Theme Architecture | CRITICAL | `theme-` |
| 3 | Component Selection | HIGH | `comp-` |
| 4 | List Performance | HIGH | `list-` |
| 5 | Props & Configuration | MEDIUM-HIGH | `props-` |
| 6 | Styling Patterns | MEDIUM | `style-` |
| 7 | Callbacks & Events | MEDIUM | `event-` |
| 8 | Advanced Patterns | LOW | `adv-` |

## Quick Reference

### 1. Import & Setup (CRITICAL)

- [`setup-themeprovider`](references/setup-themeprovider.md) - Wrap app with ThemeProvider for consistent theming
- [`setup-imports`](references/setup-imports.md) - Use @rneui/themed vs @rneui/base correctly
- [`setup-createtheme`](references/setup-createtheme.md) - Type-safe theme configuration with createTheme
- [`setup-tree-shaking`](references/setup-tree-shaking.md) - Enable proper tree-shaking for bundle size
- [`setup-safe-area`](references/setup-safe-area.md) - Configure SafeAreaProvider for notched devices

### 2. Theme Architecture (CRITICAL)

- [`theme-usetheme-hook`](references/theme-usetheme-hook.md) - Access theme reactively with useTheme
- [`theme-dark-mode`](references/theme-dark-mode.md) - Configure light/dark mode with createTheme
- [`theme-component-defaults`](references/theme-component-defaults.md) - Set component defaults in theme
- [`theme-updatetheme`](references/theme-updatetheme.md) - Runtime theme updates without remount
- [`theme-color-scheme`](references/theme-color-scheme.md) - Sync with system color scheme
- [`theme-custom-colors`](references/theme-custom-colors.md) - Extend theme with custom colors safely

### 3. Component Selection (HIGH)

- [`comp-listitem-over-view`](references/comp-listitem-over-view.md) - Use ListItem for list rows
- [`comp-input-over-textinput`](references/comp-input-over-textinput.md) - Use Input for form fields
- [`comp-searchbar-platform`](references/comp-searchbar-platform.md) - Platform-specific SearchBar variants
- [`comp-button-type`](references/comp-button-type.md) - Use Button type prop for variants
- [`comp-icon-source`](references/comp-icon-source.md) - Choose Icon type wisely for bundle size
- [`comp-avatar-vs-image`](references/comp-avatar-vs-image.md) - Use Avatar for profile images

### 4. List Performance (HIGH)

- [`list-memo-items`](references/list-memo-items.md) - Memoize ListItem in FlatList
- [`list-keyextractor`](references/list-keyextractor.md) - Always provide keyExtractor
- [`list-getitemlayout`](references/list-getitemlayout.md) - Use getItemLayout for fixed heights
- [`list-renderitem-callback`](references/list-renderitem-callback.md) - Extract renderItem with useCallback
- [`list-windowsize`](references/list-windowsize.md) - Configure windowSize for memory balance
- [`list-virtualized`](references/list-virtualized.md) - Use FlatList over ScrollView
- [`list-removeClipped`](references/list-removeClipped.md) - Configure removeClippedSubviews carefully

### 5. Props & Configuration (MEDIUM-HIGH)

- [`props-loading-state`](references/props-loading-state.md) - Use loading prop for async operations
- [`props-disabled-styling`](references/props-disabled-styling.md) - Configure disabledStyle for feedback
- [`props-input-validation`](references/props-input-validation.md) - Use errorMessage for validation
- [`props-icon-configuration`](references/props-icon-configuration.md) - Configure Icon props correctly
- [`props-searchbar-loading`](references/props-searchbar-loading.md) - Show loading state in SearchBar
- [`props-button-color`](references/props-button-color.md) - Use color prop for semantic colors

### 6. Styling Patterns (MEDIUM)

- [`style-stylesheet`](references/style-stylesheet.md) - Use StyleSheet.create over inline objects
- [`style-containerStyle`](references/style-containerStyle.md) - Use containerStyle for wrappers
- [`style-usememo-dynamic`](references/style-usememo-dynamic.md) - Memoize dynamic styles
- [`style-theme-colors`](references/style-theme-colors.md) - Use theme colors over hardcoded values
- [`style-component-props`](references/style-component-props.md) - Prefer component-specific style props

### 7. Callbacks & Events (MEDIUM)

- [`event-usecallback`](references/event-usecallback.md) - Wrap handlers in useCallback
- [`event-debounce-search`](references/event-debounce-search.md) - Debounce SearchBar onChangeText
- [`event-listitem-onpress`](references/event-listitem-onpress.md) - Pass item data correctly
- [`event-avoid-anonymous`](references/event-avoid-anonymous.md) - Avoid anonymous functions in renders
- [`event-input-handlers`](references/event-input-handlers.md) - Configure Input handlers efficiently

### 8. Advanced Patterns (LOW)

- [`adv-custom-component`](references/adv-custom-component.md) - Wrap RNE components correctly
- [`adv-platform-specific`](references/adv-platform-specific.md) - Handle platform-specific props
- [`adv-makeStyles`](references/adv-makeStyles.md) - Use makeStyles for theme-aware styles
- [`adv-overlay-modal`](references/adv-overlay-modal.md) - Choose Overlay vs Modal correctly
- [`adv-image-component`](references/adv-image-component.md) - Configure Avatar ImageComponent for caching

## How to Use

Read individual reference files for detailed explanations and code examples:

- [Section definitions](references/_sections.md) - Category structure and impact levels
- [Rule template](assets/templates/_template.md) - Template for adding new rules

## Reference Files

| File | Description |
|------|-------------|
| [references/_sections.md](references/_sections.md) | Category definitions and ordering |
| [assets/templates/_template.md](assets/templates/_template.md) | Template for new rules |
| [metadata.json](metadata.json) | Version and reference information |

© pproenca · MIT · pproenca/dot-skills

Похожие скиллы

Все скиллы по теме «Фронтенд и UI» →
react-native-patterns spencerpauly Скилл react-native-patterns направляет агента при разработке мобильных приложений на React Native и Expo: от навигации до различий между iOS и Android. CX Codex +1 440установок react-native-best-practices callstackincubator Скилл react-native-best-practices передаёт агенту правила оптимизации React Native на базе опыта Callstack: от профилирования FPS и TTI до чистки бандла. Помогает устранить лаги анимаций и утечки памяти. CX Codex +1 32 700установок react-native-tv-best-practices callstackincubator Скилл react-native-tv-best-practices для Claude Code проверяет React Native-приложения для ТВ. Подключается при работе с навигацией пультом, ТВ-плеером, интерфейсом или производительностью на телевизоре. CX Codex +1 2 800установок react-native jezweb Набор архитектурных правил и паттернов производительности для React Native и Expo. Помогает агенту оптимизировать списки, настраивать анимации и экраны. CX Codex +1 1 300установок vercel-react-native-skills vercel Скилл vercel-react-native-skills для Claude Code и других агентов: правила React Native и Expo по спискам, анимациям и навигации. Держит правки мобильного кода в одном стиле. CX Codex +1 283 800установок argent-react-native-optimization software-mansion Скилл argent-react-native-optimization для Claude Code находит узкие места и ускоряет приложения на React Native. Инструмент запускается при жалобах на лаги, лишние ререндеры или долгий старт приложения. CX Codex +1 32 700установок

Из того же набора139

Весь набор →
ios-navigation Скилл ios-navigation задаёт строгие правила навигации SwiftUI для модульной архитектуры MVVM-C на Swift 6.2. Помогает проектировать переходы, диплинки и модальные экраны. CX Codex +1 275установок swift-data Помогает проектировать слой данных на SwiftData в модульных приложениях на iOS 26 и Swift 6.2. Используйте его при работе с моделями, репозиториями и синхронизацией. CX Codex +1 275установок ios-chaos-monkey Скилл ios-chaos-monkey для Claude Code содержит правила и TDD-сценарии для выявления крашей и гонок данных в iOS на Swift 6.2. CX Codex +1 274установок nginx-c-module-perf Скилл nginx-c-module-perf даёт рекомендации по производительности и отказоустойчивости модулей nginx на C. Пригодится при настройке буферов, соединений, кэша и обработки ошибок. CX Codex +1 267установок bug-review Скилл bug-review для Claude Code выполняет пять параллельных проходов по диффу PR, отбирает находки большинством голосов и проверяет их отдельным валидатором на Opus. Баги выявляются до мержа. CX Codex +1 264установок effect-ts Скилл с рекомендациями и шаблонами по библиотеке Effect-TS в TypeScript: типизированные ошибки, сервисы через Layer и генераторы Effect.gen. CX Codex +1 263установок nginx-c-module-debug Скилл nginx-c-module-debug для Claude Code помогает разбирать падения nginx C-модулей, ошибки памяти и сбои в потоке запросов. Для диагностики используются GDB, core dump и трассировка. CX Codex +1 260установок rust-write-tests Скилл rust-write-tests направляет агента при написании надёжных тестов на Rust: проверяет инварианты, выносит тесты в отдельные файлы и устраняет флакующие проверки. CX Codex +1 257установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой