expo-ui
यह क्या करती है
यह टूल कोड लिखकर मोबाइल ऐप्स के लिए विज़ुअल इंटरफ़ेस बनाने में मदद करता है। इससे आप बटन और टेक्स्ट जैसे एलिमेंट्स बना सकते हैं, जो iPhone (SwiftUI तकनीक से) और Android फ़ोन (Jetpack Compose से) दोनों पर चलते हैं। यह सब एक ही React कोडबेस से होता है।
कब इस्तेमाल करें
- ✓जब आप चाहते हैं कि आपका ऐप iOS और Android दोनों पर अपना नेटिव लुक और फ़ील दे।
- ✓जब किसी दूसरी UI लाइब्रेरी से Expo UI पर माइग्रेट करना हो।
- ✓जब आपको ऐसे UI कॉम्पोनेंट्स चाहिए जो दोनों प्लेटफ़ॉर्म पर बिना अलग-अलग कोड लिखे काम करें।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/expo-ui/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Expo UI का इस्तेमाल करके 'यहाँ क्लिक करें' लिखा एक सिंपल बटन बनाओ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आप React में कोड लिखते हैं और `@expo/ui` पैकेज से कॉम्पोनेंट्स इम्पोर्ट करते हैं। ज़्यादातर मामलों में आप यूनिवर्सल कॉम्पोनेंट्स इस्तेमाल करेंगे, जो दोनों प्लेटफ़ॉर्म पर काम करते हैं। अगर आपको कोई बहुत खास चीज़ चाहिए, तो आप सीधे iOS (SwiftUI) या Android (Jetpack Compose) के लिए बने कॉम्पोनेंट्स इस्तेमाल कर सकते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Expo UI (@expo/ui)
When to Use
Use this skill when you need build native UI with the @expo/ui package: real SwiftUI on iOS and Jetpack Compose on Android rendered from React in an Expo or React Native app. Covers universal cross-platform components (Host, Column, Row, Button, Text, List, and more imported from @expo/ui), drop-in replacements...
@expo/ui renders real native UI from React: SwiftUI on iOS, Jetpack Compose on Android. Start with its universal components (one tree for iOS, Android, and web) and drop to platform-specific SwiftUI/Jetpack Compose only when the universal layer falls short. It also ships drop-in replacements for migrating off RN community UI libraries.
These instructions track the latest Expo SDK. The universal layer requires SDK 56+. Drop-in replacements and the platform-specific layers also exist on SDK 55. For component details on a specific SDK, refer to the Expo UI docs for that version.
Installation
npx expo install @expo/ui
On SDK 56, @expo/ui works in Expo Go, so npx expo start runs it directly — no custom build required. On older SDKs, build a dev client first (npx expo run:ios / npx expo run:android).
Every @expo/ui tree — universal or platform-specific — must be wrapped in Host.
Choosing an approach (read this first)
Work down this list and stop at the first layer that meets the need:
Universal components — start here. Import from the
@expo/uiroot. One component tree runs unmodified on iOS, Android, and web from a single source (Compose on Android, SwiftUI on iOS,react-native-web/react-domon web). No platform file splits. →./references/universal.mdPlatform-specific (SwiftUI / Jetpack Compose). Import from
@expo/ui/swift-uior@expo/ui/jetpack-compose. Use only when the universal layer is missing a component or modifier you need, or when you need platform-specific behavior or optimization. Downside: you write two trees and split them into.ios.tsx/.android.tsxfiles (or branch onPlatform.OS) — more code to maintain.@expo/ui/swift-uiis iOS-only.@expo/ui/jetpack-composeis Android-only. Importing either in a file that runs on the other platform will crash at runtime with "Unable to get view config" errors. Isolate platform-specific trees in.ios.tsx/.android.tsxfiles placed incomponents/(never insideapp/— Expo Router does not support platform extensions for route files), or guard withPlatform.OSin a regular route file.Hostmust always be imported from@expo/ui(the universal package root), not from the platform-specific sub-packages. →./references/swift-ui.mdand./references/jetpack-compose.md
Already using an RN community UI library? @expo/ui also ships drop-in replacements — API-compatible swaps for popular libraries (@gorhom/bottom-sheet, @react-native-community/datetimepicker, and more), imported from @expo/ui/community/<name>. This is a migration side-path for replacing an existing dependency, not a step in the universal-vs-platform decision above. → ./references/drop-in-replacements.md
References
Consult these resources as needed:
references/
universal.md Universal @expo/ui components and when to use them (SDK 56+)
drop-in-replacements.md API-compatible replacements for RN community UI libraries
swift-ui.md Platform-specific iOS UI: @expo/ui/swift-ui components, modifiers, RNHostView, useNativeState
jetpack-compose.md Platform-specific Android UI: @expo/ui/jetpack-compose components, modifiers, LazyColumn caveat, icons, useNativeState
Limitations
- Use this skill only when the task clearly matches its upstream product or API scope.
- Verify commands, API behavior, pricing, quotas, credentials, and deployment effects against current official documentation before making changes.
- Do not treat generated examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
अक्सर पूछे जाने वाले सवाल
यूनिवर्सल कॉम्पोनेंट्स क्या होते हैं?
ये ऐसे UI कॉम्पोनेंट्स हैं जो iOS, Android और यहाँ तक कि वेब पर भी बराबर अच्छे से चलते हैं, इसलिए एक ही कोड सभी प्लेटफ़ॉर्म के लिए काम आता है।
iOS या Android के खास कॉम्पोनेंट्स कब इस्तेमाल करने चाहिए?
इन्हें तभी इस्तेमाल करें जब यूनिवर्सल कॉम्पोनेंट्स आपकी ज़रूरत पूरी न करें, या जब परफ़ॉर्मेंस या व्यवहार के लिए किसी खास प्लेटफ़ॉर्म फ़ीचर की ज़रूरत हो।
क्या Expo UI के लिए कोई खास सेटअप चाहिए?
हाँ, आपको अपने प्रोजेक्ट में `@expo/ui` पैकेज इंस्टॉल करना होगा। Expo SDK 56 से यह सीधे Expo Go में चलता है। पुराने वर्शन पर आपको शायद development client बनाना पड़े।
जानकारी
लेखक का मूल विवरण
Build native UI with the @expo/ui package: real SwiftUI on iOS and Jetpack Compose on Android rendered from React in an Expo or React Native app.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #4580
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
android-clean-architecture
280kयह आपके एजेंट को Android projects को व्यवस्थित तरीके से संभालने देता है। यह code को ऐसा ढांचा देता है कि उसकी देखभाल और नए features जोड़ना आसान हो।
compose-multiplatform-patterns
280kKMP projects में Compose Multiplatform और Jetpack Compose patterns इस्तेमाल करने में आपके एजेंट की मदद करता है। इसमें state, navigation, theming और performance शामिल हैं।
dart-flutter-patterns
280kयह आपके एजेंट को Dart और Flutter apps के लिए code लिखने देता है। यह आधुनिक patterns इस्तेमाल करके मज़बूत और आसानी से संभलने वाले apps बनाता है।