react-native-elements
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "react-native-elements" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-33614fd90e70bb6887aa23e2940dad30e4d1d105f623a888957b61f1f94cd045. Verify the upstream source and version against https://github.com/pproenca/dot-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Best-practice guidance for the React Native Elements (RNE) UI component library, covering performance optimization, theming configuration, and correct component usage. Intended for scenarios such as building React Native apps with RNE, configuring themes, using ListItem to optimize lists, or reviewing RNE component code.
Introduction source: third_party · pproenca · 0.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Software, accounts and paid services
- `setup-themeprovider` - Wrap app with ThemeProvider for consistent theming `setup-imports` - Use @rneui/themed vs @rneui/base correctly `setup-createtheme` - Type-safe theme configuration with createTheme `setup-tree-shaking` - Enable proper tree-shaking for bundle size `setup-safe-area` - Configure SafeAreaProvider for notched devices
- Testing
- Not tested
Browse files
Frontmatter
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- 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 onChangeTextevent-listitem-onpress- Pass item data correctlyevent-avoid-anonymous- Avoid anonymous functions in rendersevent-input-handlers- Configure Input handlers efficiently
8. Advanced Patterns (LOW)
adv-custom-component- Wrap RNE components correctlyadv-platform-specific- Handle platform-specific propsadv-makeStyles- Use makeStyles for theme-aware stylesadv-overlay-modal- Choose Overlay vs Modal correctlyadv-image-component- Configure Avatar ImageComponent for caching
How to Use
Read individual reference files for detailed explanations and code examples:
- Section definitions - Category structure and impact levels
- Rule template - Template for adding new rules
Reference Files
| File | Description |
|---|---|
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 React Native Elements UI 组件库的全面最佳实践指南
- 涵盖性能优化、主题化配置、组件选择等关键开发场景
- 包含45条规则,按优先级分类,实用性强
Highlights
- 触发描述清晰明确,覆盖多种使用场景
- 边界清晰,不易与其他 Skill 混淆
Areas to improve
-
description写错位置 Reported severity: Minor
顶层 frontmatter 中 description 为空,实际描述内容在 skill_body 内部
Recommendation: 将 description 内容移至顶层 frontmatter
-
文档过长 Reported severity: Minor
主文档内容超过500行,影响阅读体验
Recommendation: 考虑将部分内容移至引用文件中
Highlights
- 结构清晰,包含完整的分类和优先级体系
- 提供了详细的规则引用和快速参考
Highlights
- 作为最佳实践指南,内容可靠且实用
- 提供了完整的规则体系和参考文件结构
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
`setup-themeprovider` - Wrap app with ThemeProvider for consistent theming `setup-imports` - Use @rneui/themed vs @rneui/base correctly `setup-createtheme` - Type-safe theme configuration with createTheme `setup-tree-shaking` - Enable proper tree-shaking for bundle size `setup-safe-area` - Configure SafeAreaProvider for notched devices
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.