openai/plugins/expo-module
Claude Code and agent skill by openai/plugins
- vendor
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Guide for writing Expo native modules and views using the Expo Modules API (Swift, Kotlin, TypeScript). Covers module definition DSL, native views, shared objects, config plugins, lifecycle hooks, autolinking, and type system. Use when building or modifying native modules for Expo.
Install
npx vskill@latest install openai/plugins/expo-moduleSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as openai/plugins/expo-module.
Writing Expo Modules
Complete reference for building native modules and views using the Expo Modules API. Covers Swift (iOS), Kotlin (Android), and TypeScript.
When to Use
- Creating a new Expo native module or native view
- Adding native functionality (camera, sensors, system APIs) to an Expo app
- Wrapping platform SDKs for React Native consumption
- Building config plugins that modify native project files
References
Consult these resources as needed:
Quick Start
Create a Local Module (in existing app)
Always scaffold with `create-expo-module` first, then modify the generated code. This ensures correct podspec, build.gradle, and module config — avoiding common build errors.
CI=1 skips interactive prompts and uses the provided flags.
Important: InCI=1(non-interactive) mode, the scaffold always creates the directory asmodules/my-module/because the slug is derived fromcustomTargetPathwhich isundefinedfor--localmodules — the--nameflag only sets the native class name, not the directory. After scaffolding, rename it to a kebab-case name matching your module (e.g.,KeyValueStore→modules/key-value-store/), then runcd ios && pod installso CocoaPods picks up the correct path. Skipping the rename is fine functionally, but skippingpod installafter any rename causes iOS build failures ("Build input file cannot be found").
Available flags:
| Flag | Description | Example | |
|---|---|---|---|
--name | Native module name (PascalCase) | --name KeyValueStore | |
--description | Module description | --description "Native key-value storage" | |
--package | Android package name | --package expo.modules.keyvaluestore | |
--author-name | Author name | --author-name "dev" | |
--author-email | Author email | --author-email "dev@example.com" | |
--author-url | Author profile URL | --author-url "https://github.com/dev" | |
--repo | Repository URL | --repo "https://github.com/dev/repo" |
The scaffold generates both a native module (functions, events, constants) and a native view component (WebView example with props and events). After scaffolding:
- Decide what you need: If you only need a native module (no UI), remove the view files. If you only need a native view, remove the module function boilerplate. If you need both, keep both and replace the implementations.
- Remove unnecessary boilerplate: The scaffold includes example code (
hello()function,PIconstant,onChangeevent, WebView-based view withurlprop). Strip all of this and replace with your actual implementation. - Remove web files if not needed: The scaffold generates
*.web.ts/*.web.tsxfiles for web platform support. Remove these if the module is native-only. Also remove"web"from theplatformsarray inexpo-module.config.json.
What to remove for a module-only (no native view):
- Delete
ios/MyModuleView.swift,android/.../MyModuleView.kt - Delete
src/MyModuleView.tsx,src/MyModuleView.web.tsx - Remove the
View(...)block from the module definition in both Swift and Kotlin - Remove view-related types from
MyModule.types.tsand view export fromindex.ts
What to remove for a view-only (no module functions):
- Remove
Function,AsyncFunction,Constant,Eventsblocks from the module definition (keepNameandView) - Simplify the TypeScript module file to only export the view
Generated structure (after renaming from my-module to your module's kebab-case name):
Create a Standalone Module (for publishing)
Module Structure Reference
The Swift and Kotlin DSL share the same structure. Both platforms are shown here for reference — in other reference files, Swift is shown as the primary language unless the Kotlin pattern meaningfully differs.
Swift (iOS):
Kotlin (Android):
TypeScript:
expo-module.config.json
Note: iOS uses just the class name; Android uses the fully-qualified class name (package + class). See references/module-config.md for all fields.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 16 Aug 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/expo/skills/expo-module/SKILL.md
Popularity
- Repository stars
- 5,110
- Repository forks
- 701
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Apr 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openai/plugins/expo-module)