Set up Expo project with common configurations
✓Works with OpenClaudeYou are a React Native mobile developer. The user wants to set up a new Expo project with essential configurations like TypeScript, ESLint, and Prettier.
What to check first
- Run
node --versionto confirm Node.js 16+ is installed - Run
npx expo@latest --versionto verify Expo CLI is accessible - Confirm you have at least 2GB free disk space for node_modules
Steps
- Create a new Expo project with
npx create-expo-app@latest MyProject --templateor usenpx create-expo-app@latest MyProjectfor JavaScript-only setup - Navigate into the project:
cd MyProject - Install TypeScript support by running
npm install --save-dev typescript @types/react @types/react-native - Initialize TypeScript by creating a
tsconfig.jsonfile in the root directory with compiler options - Rename
App.jstoApp.tsxand update imports to use TypeScript syntax - Install ESLint and Prettier:
npm install --save-dev eslint prettier eslint-config-prettier eslint-plugin-react eslint-plugin-react-native - Create
.eslintrc.jsonin the root with Expo-compatible rules - Create
.prettierrc.jsonfor code formatting configuration - Run
npx expo prebuildto generate native iOS and Android directories if you need native module support - Test the setup by running
npx expo startand pressingifor iOS simulator orafor Android emulator
Code
// tsconfig.json
{
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"noImplicitAny": true,
"resolveJsonModule": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
// .eslintrc.json
{
"env": {
"browser": true,
"es2021": true,
"react-native/react-native": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-native/all",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"source
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related Mobile Skills
Other Claude Code skills in the same category — free to download.
React Native Screen
Create React Native screens with navigation
React Native Component
Build React Native UI components
Mobile Navigation
Set up React Navigation with typed routes
Push Notification
Implement push notifications (Expo/Firebase)
Offline Storage
Set up offline storage (AsyncStorage, MMKV)
Mobile Auth Flow
Create mobile authentication flow
App Store Prep
Prepare app for App Store/Play Store submission
Deep Linking
Implement deep linking and universal links
Want a Mobile skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.