react-native-elements
FreeNo executable scriptsNot checkedReact Native Elements UI component library best practices for performance, theming, and proper component usage. Use when building React Native apps with RNE…
by pproenca★ 231 GitHub starsAbout this skill
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- Wrap app with ThemeProvider for consistent themingsetup-imports- Use @rneui/themed vs @rneui/base correctlysetup-createtheme- Type-safe theme configuration with createThemesetup-tree-shaking- Enable proper tree-shaking for bundle sizesetup-safe-area- Configure SafeAreaProvider for notched devices
2. Theme Architecture (CRITICAL)
theme-usetheme-hook- Access theme reactively with useThemetheme-dark-mode- Configure light/dark mode with createThemetheme-component-defaults- Set component defaults in themetheme-updatetheme- Runtime theme updates without remounttheme-color-scheme- Sync with system color schemetheme-custom-colors- Extend theme with custom colors safely
3. Component Selection (HIGH)
comp-listitem-over-view- Use ListItem for list rowscomp-input-over-textinput- Use Input for form fieldscomp-searchbar-platform- Platform-specific SearchBar variantscomp-button-type- Use Button type prop for variantscomp-icon-source- Choose Icon type wisely for bundle sizecomp-avatar-vs-image- Use Avatar for profile images
4. List Performance (HIGH)
list-memo-items- Memoize ListItem in FlatListlist-keyextractor- Always provide keyExtractorlist-getitemlayout- Use getItemLayout for fixed heightslist-renderitem-callback- Extract renderItem with useCallbacklist-windowsize- Configure windowSize for memory balancelist-virtualized- Use FlatList over ScrollViewlist-removeClipped- Configure removeClippedSubviews carefully
5. Props & Configuration (MEDIUM-HIGH)
props-loading-state- Use loading prop for async operationsprops-disabled-styling- Configure disabledStyle for feedbackprops-input-validation- Use errorMessage for validationprops-icon-configuration- Configure Icon props correctlyprops-searchbar-loading- Show loading state in SearchBarprops-button-color- Use color prop for semantic colors
6. Styling Patterns (MEDIUM)
style-stylesheet- Use StyleSheet.create over inline objectsstyle-containerStyle- Use containerStyle for wrappersstyle-usememo-dynamic- Memoize dynamic stylesstyle-theme-colors- Use theme colors over hardcoded valuesstyle-component-props- Prefer component-specific style props
7. Callbacks & Events (MEDIUM)
event-usecallback- Wrap handlers in useCallbackevent-debounce-search- Debounce SearchBar o
Install react-native-elements in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the react-native-elements skill do?
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.
How do I install the react-native-elements skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the react-native-elements skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic