heroui-native
Что он делает
Этот скилл направляет создание интерфейсов мобильных приложений с библиотекой компонентов HeroUI Native для React Native. Он охватывает установку библиотеки, настройку светлой и тёмной тем и использование компонентов.
Когда использовать
- ✓Когда вы создаёте экран мобильного приложения с HeroUI Native.
- ✓Когда вы хотите настроить светлую и тёмную темы для приложения на React Native.
- ✓Когда вам нужна документация по компоненту HeroUI Native.
Ссылка на скилл
https://github.com/heroui-inc/heroui/blob/v3/skills/heroui-native/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Создай экран входа для моего приложения на React Native с кнопками и полями ввода из HeroUI Native.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент читает документацию по нативным компонентам, прежде чем писать код, потому что веб-шаблоны для мобильных экранов не подходят. Он устанавливает библиотеку, настраивает темы и затем собирает экран из нужных компонентов.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
HeroUI Native Development Guide
HeroUI Native is a component library built on Uniwind (Tailwind CSS for React Native) and React Native, providing accessible, customizable UI components for mobile applications.
Installation
curl -fsSL https://heroui.com/install | bash -s heroui-native
CRITICAL: Native Only - Do Not Use Web Patterns
This guide is for HeroUI Native ONLY. Do NOT apply HeroUI React (web) patterns — the package, styling engine, and color format all differ:
| Feature | React (Web) | Native (Mobile) |
|---|---|---|
| Styling | Tailwind CSS v4 | Uniwind (Tailwind for React Native) |
| Colors | oklch format | HSL format |
| Package | @heroui/react |
heroui-native |
| Platform | Web browsers | iOS & Android |
// CORRECT — Native pattern
import { Button } from "heroui-native";
<Button variant="primary" onPress={() => console.log("Pressed!")}>
Click me
</Button>;
Always fetch Native docs before implementing.
Core Principles
- Semantic variants (
primary,secondary,tertiary) over visual descriptions - Composition over configuration (compound components)
- Theme variables with HSL color format
- React Native StyleSheet patterns with Uniwind utilities
Accessing Documentation & Component Information
For component details, examples, props, and implementation patterns, always fetch documentation:
Using Scripts
# List all available components
node scripts/list_components.mjs
# Get component documentation (MDX)
node scripts/get_component_docs.mjs Button
node scripts/get_component_docs.mjs Button Card TextField
# Get theme variables
node scripts/get_theme.mjs
# Get non-component docs (guides, releases)
node scripts/get_docs.mjs /docs/native/getting-started/theming
Direct MDX URLs
Component docs: fetch .mdx with a concrete kebab-case slug. Run node scripts/list_components.mjs when the slug is unknown, and never fetch a URL that still contains a placeholder.
Examples:
- Button:
https://heroui.com/docs/native/components/button.mdx - Dialog:
https://heroui.com/docs/native/components/dialog.mdx - TextField:
https://heroui.com/docs/native/components/text-field.mdx
Getting started guides: use a concrete topic URL such as https://heroui.com/docs/native/getting-started/quick-start.mdx.
Important: Always fetch component docs before implementing. The MDX docs include complete examples, props, anatomy, and API references.
Installation Essentials
Quick Install
npm i heroui-native react-native-reanimated react-native-gesture-handler react-native-safe-area-context @gorhom/bottom-sheet react-native-svg react-native-worklets tailwind-merge tailwind-variants
Framework Setup (Expo - Recommended)
- Install dependencies:
npx create-expo-app MyApp
cd MyApp
npm i heroui-native uniwind tailwindcss
npm i react-native-reanimated react-native-gesture-handler react-native-safe-area-context @gorhom/bottom-sheet react-native-svg react-native-worklets tailwind-merge tailwind-variants
- Create
global.css:
@import "tailwindcss";
@import "uniwind";
@import "heroui-native/styles";
@source "./node_modules/heroui-native/lib";
- Wrap app with providers:
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { HeroUINativeProvider } from "heroui-native";
import "./global.css";
export default function Layout() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<HeroUINativeProvider>
<App />
</HeroUINativeProvider>
</GestureHandlerRootView>
);
}
Critical Setup Requirements
- Uniwind is Required - HeroUI Native uses Uniwind (Tailwind CSS for React Native)
- HeroUINativeProvider Required - Wrap your app with
HeroUINativeProvider - GestureHandlerRootView Required - Wrap with
GestureHandlerRootViewfrom react-native-gesture-handler - Use Compound Components - Components use compound structure (e.g.,
Card.Header,Card.Body) - Use onPress, not onClick - React Native uses
onPressevent handlers - Platform-Specific Code - Use
Platform.OSfor iOS/Android differences
Component Patterns
HeroUI Native uses **compound component pattern
Частые вопросы
Могу ли я повторно использовать мой веб-код HeroUI?
Нет. Нативная библиотека использует другие форматы стилей и цветов, поэтому веб-шаблоны не подходят.
Поддерживается ли тёмная тема?
Да. Скилл охватывает настройку тёмной и светлой тем.
Для каких платформ он подходит?
Для приложений iOS и Android, созданных на React Native.
Подробности
Оригинальное описание автора
HeroUI Native component library for React Native (Tailwind v4 via Uniwind). Use when building mobile UIs with HeroUI Native — creating Buttons, Cards, TextFields, Dialogs; installing heroui-native; configuring dark/light themes; or fetching component docs. Keywords: HeroUI Native, heroui-native, React Native UI, Uniwind, mobile components.
repo: heroui-inc/heroui
Популярность
- Звёзды на GitHub
- 31k
- Место в рейтинге
- #9326
- Лицензия
- Apache-2.0
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
heroui-migration
31kПомогает агенту перевести веб-приложение с HeroUI v2 на HeroUI v3, включая изменённые шаблоны компонентов и удалённые хуки.
heroui-react
31kПомогает агенту создавать веб-интерфейсы на React с компонентами HeroUI v3, например кнопками, модальными окнами, формами и карточками.
Похожие скиллы
android-clean-architecture
280kПомогает агенту эффективно организовывать Android-проекты. Структурирует код, чтобы его было проще поддерживать и развивать.
compose-multiplatform-patterns
280kПомогает агенту применять паттерны Compose Multiplatform и Jetpack Compose в KMP-проектах: состояние, навигация, темы и производительность.
dart-flutter-patterns
280kАгент пишет код для приложений на Dart и Flutter по современным паттернам, чтобы они были надёжными и управляемыми.