用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/G1Joshi/Agent-Skills --skill expo命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | expo |
| description | Expo React Native development platform. Use for React Native apps. |
Expo is an open-source framework for apps that run natively on Android, iOS, and the web. It builds on top of React Native, providing a curated set of tools and libraries (SDK) to simplify the development lifecycle.
# Create a new app with Expo Router (default in 2025)
npx create-expo-app@latest my-safe-app
cd my-safe-app
npx expo start
// app/_layout.tsx
import { Stack } from "expo-router";
export default function Layout() {
return (
<Stack>
<Stack.Screen name="index" options={{ title: "Home" }} />
</Stack>
);
}
// app/index.tsx
import { View, Text, StyleSheet } from "react-native";
import { Link } from "expo-router";
import { Image } from "expo-image";
export default function Index() {
return (
<View style={styles.container}>
<Image
source="https://picsum.photos/200"
style={{ width: 100, height: 100, marginBottom: 20 }}
contentFit="cover"
/>
<Text style={styles.text}>Welcome to Expo!</Text>
<Link href="/details/123" style={styles.link}>
Go to Details
</Link>
</View>
);
}
const styles = StyleSheet.create({
container: { flex: 1, justifyContent: "center", alignItems: "center" },
text: { fontSize: 20, fontWeight: "bold" },
link: { marginTop: 15, color: "#007AFF" },
});
Historically, Expo had a "ejected" vs "managed" split. Modern Expo uses Prebuild (Continuous Native Generation). You don't commit android or ios folders; instead, they are generated on demand from app.json configuration.
.apk / .ipa.Functions that modify native files (Info.plist, AndroidManifest.xml) during prebuild. This allows you to use any native library without "ejecting".
Instead of Expo Go (which has a fixed set of native code), create a Development Build. This is a custom version of Expo Go that includes your specific native dependencies.
npx expo run:ios or npx eas build --profile development --platform ios.File-system based routing (like Next.js).
app/home.tsx -> /homeapp/user/[id].tsx -> /user/123Do:
npx expo install to install libraries (ensures version compatibility).expo-image) for performant image loading and caching.Don't:
ios and android directories if using CNG (Continuous Native Generation).npx expo doctor warnings.| Error | Cause | Solution |
|---|---|---|
Native module cannot be null | Library installed but not in the runtime. | Rebuild the Development Build (npx expo run:ios). |
EAS Build failed | Configuration error or build timeout. | Check logs on expo.dev; run npx expo-doctor. |
Expo Go crashes on launch | Incompatible SDK version or native code. | Update Expo Go or switch to Development Build. |