@codyswann/lisa 2.111.0 → 2.113.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/cdk/package-lisa/package.lisa.json +1 -0
  2. package/dist/core/lisa.d.ts +42 -0
  3. package/dist/core/lisa.d.ts.map +1 -1
  4. package/dist/core/lisa.js +67 -0
  5. package/dist/core/lisa.js.map +1 -1
  6. package/expo/package-lisa/package.lisa.json +1 -0
  7. package/nestjs/package-lisa/package.lisa.json +1 -0
  8. package/package.json +1 -1
  9. package/plugins/lisa/.claude-plugin/plugin.json +1 -1
  10. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  11. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  13. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  15. package/plugins/lisa-expo/.mcp.json +3 -3
  16. package/plugins/lisa-expo/THIRD-PARTY-NOTICES.md +57 -0
  17. package/plugins/lisa-expo/skills/add-app-clip/SKILL.md +280 -0
  18. package/plugins/lisa-expo/skills/add-app-clip/agents/openai.yaml +4 -0
  19. package/plugins/lisa-expo/skills/add-app-clip/references/native-module.md +96 -0
  20. package/plugins/lisa-expo/skills/building-native-ui/SKILL.md +321 -0
  21. package/plugins/lisa-expo/skills/building-native-ui/agents/openai.yaml +4 -0
  22. package/plugins/lisa-expo/skills/building-native-ui/references/animations.md +220 -0
  23. package/plugins/lisa-expo/skills/building-native-ui/references/controls.md +272 -0
  24. package/plugins/lisa-expo/skills/building-native-ui/references/form-sheet.md +253 -0
  25. package/plugins/lisa-expo/skills/building-native-ui/references/gradients.md +106 -0
  26. package/plugins/lisa-expo/skills/building-native-ui/references/icons.md +213 -0
  27. package/plugins/lisa-expo/skills/building-native-ui/references/media.md +198 -0
  28. package/plugins/lisa-expo/skills/building-native-ui/references/route-structure.md +229 -0
  29. package/plugins/lisa-expo/skills/building-native-ui/references/search.md +248 -0
  30. package/plugins/lisa-expo/skills/building-native-ui/references/storage.md +121 -0
  31. package/plugins/lisa-expo/skills/building-native-ui/references/tabs.md +433 -0
  32. package/plugins/lisa-expo/skills/building-native-ui/references/toolbar-and-headers.md +284 -0
  33. package/plugins/lisa-expo/skills/building-native-ui/references/visual-effects.md +197 -0
  34. package/plugins/lisa-expo/skills/building-native-ui/references/webgpu-three.md +605 -0
  35. package/plugins/lisa-expo/skills/building-native-ui/references/zoom-transitions.md +158 -0
  36. package/plugins/lisa-expo/skills/eas-update-insights/SKILL.md +228 -0
  37. package/plugins/lisa-expo/skills/eas-update-insights/agents/openai.yaml +4 -0
  38. package/plugins/lisa-expo/skills/eas-update-insights/references/channel-insights-schema.md +47 -0
  39. package/plugins/lisa-expo/skills/eas-update-insights/references/update-insights-schema.md +69 -0
  40. package/plugins/lisa-expo/skills/expo-api-routes/SKILL.md +369 -0
  41. package/plugins/lisa-expo/skills/expo-api-routes/agents/openai.yaml +4 -0
  42. package/plugins/lisa-expo/skills/expo-brownfield/SKILL.md +54 -0
  43. package/plugins/lisa-expo/skills/expo-brownfield/agents/openai.yaml +4 -0
  44. package/plugins/lisa-expo/skills/expo-brownfield/references/brownfield-integrated.md +526 -0
  45. package/plugins/lisa-expo/skills/expo-brownfield/references/brownfield-isolated.md +402 -0
  46. package/plugins/lisa-expo/skills/expo-brownfield/references/comparison.md +63 -0
  47. package/plugins/lisa-expo/skills/expo-brownfield/references/troubleshooting.md +88 -0
  48. package/plugins/lisa-expo/skills/expo-cicd-workflows/SKILL.md +92 -0
  49. package/plugins/lisa-expo/skills/expo-cicd-workflows/agents/openai.yaml +4 -0
  50. package/plugins/lisa-expo/skills/expo-cicd-workflows/scripts/fetch.js +113 -0
  51. package/plugins/lisa-expo/skills/expo-cicd-workflows/scripts/package.json +11 -0
  52. package/plugins/lisa-expo/skills/expo-cicd-workflows/scripts/validate.js +85 -0
  53. package/plugins/lisa-expo/skills/expo-deployment/SKILL.md +190 -0
  54. package/plugins/lisa-expo/skills/expo-deployment/agents/openai.yaml +4 -0
  55. package/plugins/lisa-expo/skills/expo-deployment/references/app-store-metadata.md +479 -0
  56. package/plugins/lisa-expo/skills/expo-deployment/references/ios-app-store.md +355 -0
  57. package/plugins/lisa-expo/skills/expo-deployment/references/play-store.md +246 -0
  58. package/plugins/lisa-expo/skills/expo-deployment/references/testflight.md +58 -0
  59. package/plugins/lisa-expo/skills/expo-deployment/references/workflows.md +200 -0
  60. package/plugins/lisa-expo/skills/expo-dev-client/SKILL.md +164 -0
  61. package/plugins/lisa-expo/skills/expo-dev-client/agents/openai.yaml +4 -0
  62. package/plugins/lisa-expo/skills/expo-module/SKILL.md +141 -0
  63. package/plugins/lisa-expo/skills/expo-module/agents/openai.yaml +4 -0
  64. package/plugins/lisa-expo/skills/expo-module/references/config-plugin.md +90 -0
  65. package/plugins/lisa-expo/skills/expo-module/references/create-expo-module.md +206 -0
  66. package/plugins/lisa-expo/skills/expo-module/references/lifecycle.md +127 -0
  67. package/plugins/lisa-expo/skills/expo-module/references/module-config.md +48 -0
  68. package/plugins/lisa-expo/skills/expo-module/references/native-module.md +286 -0
  69. package/plugins/lisa-expo/skills/expo-module/references/native-view.md +171 -0
  70. package/plugins/lisa-expo/skills/expo-tailwind-setup/SKILL.md +480 -0
  71. package/plugins/lisa-expo/skills/expo-tailwind-setup/agents/openai.yaml +4 -0
  72. package/plugins/lisa-expo/skills/expo-ui-jetpack-compose/SKILL.md +40 -0
  73. package/plugins/lisa-expo/skills/expo-ui-jetpack-compose/agents/openai.yaml +4 -0
  74. package/plugins/lisa-expo/skills/expo-ui-swift-ui/SKILL.md +39 -0
  75. package/plugins/lisa-expo/skills/expo-ui-swift-ui/agents/openai.yaml +4 -0
  76. package/plugins/lisa-expo/skills/native-data-fetching/SKILL.md +507 -0
  77. package/plugins/lisa-expo/skills/native-data-fetching/agents/openai.yaml +4 -0
  78. package/plugins/lisa-expo/skills/native-data-fetching/references/expo-router-loaders.md +344 -0
  79. package/plugins/lisa-expo/skills/upgrading-expo/SKILL.md +134 -0
  80. package/plugins/lisa-expo/skills/upgrading-expo/agents/openai.yaml +4 -0
  81. package/plugins/lisa-expo/skills/upgrading-expo/references/expo-av-to-audio.md +132 -0
  82. package/plugins/lisa-expo/skills/upgrading-expo/references/expo-av-to-video.md +160 -0
  83. package/plugins/lisa-expo/skills/upgrading-expo/references/native-tabs.md +124 -0
  84. package/plugins/lisa-expo/skills/upgrading-expo/references/new-architecture.md +79 -0
  85. package/plugins/lisa-expo/skills/upgrading-expo/references/react-19.md +79 -0
  86. package/plugins/lisa-expo/skills/upgrading-expo/references/react-compiler.md +59 -0
  87. package/plugins/lisa-expo/skills/upgrading-expo/references/react-navigation-to-expo-router.md +61 -0
  88. package/plugins/lisa-expo/skills/use-dom/SKILL.md +417 -0
  89. package/plugins/lisa-expo/skills/use-dom/agents/openai.yaml +4 -0
  90. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  91. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  92. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  93. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  94. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  95. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  96. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  97. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  98. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  99. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  100. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  101. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  102. package/plugins/src/expo/.mcp.json +3 -3
  103. package/plugins/src/expo/THIRD-PARTY-NOTICES.md +57 -0
  104. package/plugins/src/expo/skills/add-app-clip/SKILL.md +280 -0
  105. package/plugins/src/expo/skills/add-app-clip/references/native-module.md +96 -0
  106. package/plugins/src/expo/skills/building-native-ui/SKILL.md +321 -0
  107. package/plugins/src/expo/skills/building-native-ui/references/animations.md +220 -0
  108. package/plugins/src/expo/skills/building-native-ui/references/controls.md +272 -0
  109. package/plugins/src/expo/skills/building-native-ui/references/form-sheet.md +253 -0
  110. package/plugins/src/expo/skills/building-native-ui/references/gradients.md +106 -0
  111. package/plugins/src/expo/skills/building-native-ui/references/icons.md +213 -0
  112. package/plugins/src/expo/skills/building-native-ui/references/media.md +198 -0
  113. package/plugins/src/expo/skills/building-native-ui/references/route-structure.md +229 -0
  114. package/plugins/src/expo/skills/building-native-ui/references/search.md +248 -0
  115. package/plugins/src/expo/skills/building-native-ui/references/storage.md +121 -0
  116. package/plugins/src/expo/skills/building-native-ui/references/tabs.md +433 -0
  117. package/plugins/src/expo/skills/building-native-ui/references/toolbar-and-headers.md +284 -0
  118. package/plugins/src/expo/skills/building-native-ui/references/visual-effects.md +197 -0
  119. package/plugins/src/expo/skills/building-native-ui/references/webgpu-three.md +605 -0
  120. package/plugins/src/expo/skills/building-native-ui/references/zoom-transitions.md +158 -0
  121. package/plugins/src/expo/skills/eas-update-insights/SKILL.md +228 -0
  122. package/plugins/src/expo/skills/eas-update-insights/references/channel-insights-schema.md +47 -0
  123. package/plugins/src/expo/skills/eas-update-insights/references/update-insights-schema.md +69 -0
  124. package/plugins/src/expo/skills/expo-api-routes/SKILL.md +369 -0
  125. package/plugins/src/expo/skills/expo-brownfield/SKILL.md +54 -0
  126. package/plugins/src/expo/skills/expo-brownfield/references/brownfield-integrated.md +526 -0
  127. package/plugins/src/expo/skills/expo-brownfield/references/brownfield-isolated.md +402 -0
  128. package/plugins/src/expo/skills/expo-brownfield/references/comparison.md +63 -0
  129. package/plugins/src/expo/skills/expo-brownfield/references/troubleshooting.md +88 -0
  130. package/plugins/src/expo/skills/expo-cicd-workflows/SKILL.md +92 -0
  131. package/plugins/src/expo/skills/expo-cicd-workflows/scripts/fetch.js +113 -0
  132. package/plugins/src/expo/skills/expo-cicd-workflows/scripts/package.json +11 -0
  133. package/plugins/src/expo/skills/expo-cicd-workflows/scripts/validate.js +85 -0
  134. package/plugins/src/expo/skills/expo-deployment/SKILL.md +190 -0
  135. package/plugins/src/expo/skills/expo-deployment/references/app-store-metadata.md +479 -0
  136. package/plugins/src/expo/skills/expo-deployment/references/ios-app-store.md +355 -0
  137. package/plugins/src/expo/skills/expo-deployment/references/play-store.md +246 -0
  138. package/plugins/src/expo/skills/expo-deployment/references/testflight.md +58 -0
  139. package/plugins/src/expo/skills/expo-deployment/references/workflows.md +200 -0
  140. package/plugins/src/expo/skills/expo-dev-client/SKILL.md +164 -0
  141. package/plugins/src/expo/skills/expo-module/SKILL.md +141 -0
  142. package/plugins/src/expo/skills/expo-module/references/config-plugin.md +90 -0
  143. package/plugins/src/expo/skills/expo-module/references/create-expo-module.md +206 -0
  144. package/plugins/src/expo/skills/expo-module/references/lifecycle.md +127 -0
  145. package/plugins/src/expo/skills/expo-module/references/module-config.md +48 -0
  146. package/plugins/src/expo/skills/expo-module/references/native-module.md +286 -0
  147. package/plugins/src/expo/skills/expo-module/references/native-view.md +171 -0
  148. package/plugins/src/expo/skills/expo-tailwind-setup/SKILL.md +480 -0
  149. package/plugins/src/expo/skills/expo-ui-jetpack-compose/SKILL.md +40 -0
  150. package/plugins/src/expo/skills/expo-ui-swift-ui/SKILL.md +39 -0
  151. package/plugins/src/expo/skills/native-data-fetching/SKILL.md +507 -0
  152. package/plugins/src/expo/skills/native-data-fetching/references/expo-router-loaders.md +344 -0
  153. package/plugins/src/expo/skills/upgrading-expo/SKILL.md +134 -0
  154. package/plugins/src/expo/skills/upgrading-expo/references/expo-av-to-audio.md +132 -0
  155. package/plugins/src/expo/skills/upgrading-expo/references/expo-av-to-video.md +160 -0
  156. package/plugins/src/expo/skills/upgrading-expo/references/native-tabs.md +124 -0
  157. package/plugins/src/expo/skills/upgrading-expo/references/new-architecture.md +79 -0
  158. package/plugins/src/expo/skills/upgrading-expo/references/react-19.md +79 -0
  159. package/plugins/src/expo/skills/upgrading-expo/references/react-compiler.md +59 -0
  160. package/plugins/src/expo/skills/upgrading-expo/references/react-navigation-to-expo-router.md +61 -0
  161. package/plugins/src/expo/skills/use-dom/SKILL.md +417 -0
  162. package/scripts/generate-codex-plugin-artifacts.mjs +7 -2
  163. package/scripts/install-claude-plugins.sh +23 -7
  164. package/typescript/package-lisa/package.lisa.json +2 -0
@@ -0,0 +1,280 @@
1
+ ---
2
+ name: add-app-clip
3
+ description: Add an iOS App Clip target to an Expo app. Use when the user mentions App Clip, AASA, apple-app-site-association, appclips, smart app banner, or wants to ship a lightweight iOS Clip invoked from a URL alongside their parent app.
4
+ ---
5
+
6
+ # Add an App Clip to an Expo App
7
+
8
+ Adds an iOS App Clip target to an Expo project. The Clip lives in `targets/clip/`, ships alongside the parent app, and is invoked from a URL on the app's domain via an Apple App Site Association (AASA) file.
9
+
10
+ The parent app's bundle ID becomes `com.<username>.<app-name>` and the Clip's is automatically derived as `<parent>.clip` (e.g. `com.bacon.may20.clip`).
11
+
12
+ ## 1. Set `bundleIdentifier` and `appleTeamId`
13
+
14
+ `bun create target` warns if these are missing. Add to `app.json`:
15
+
16
+ ```json
17
+ {
18
+ "expo": {
19
+ "ios": {
20
+ "bundleIdentifier": "com.<username>.<app-name>",
21
+ "appleTeamId": "XX57RJ5UTD"
22
+ }
23
+ }
24
+ }
25
+ ```
26
+
27
+ ## 2. Add the App Clip target
28
+
29
+ ```sh
30
+ bun create target clip
31
+ ```
32
+
33
+ This installs [`@bacons/apple-targets`](https://github.com/EvanBacon/expo-apple-targets), adds it to the `plugins` array in `app.json`, and writes:
34
+
35
+ - `targets/clip/expo-target.config.js` — the target's config plugin
36
+ - `targets/clip/Info.plist` — Clip Info.plist
37
+ - `targets/clip/AppDelegate.swift`, `Assets.xcassets`, etc.
38
+
39
+ Pick a good icon or reuse the existing one defined in the app — check it with `bunx expo config` under the `icon` or `ios.icon` key.
40
+
41
+ ## 3. Wire up associated domains
42
+
43
+ The parent app and the Clip each need the Associated Domains entitlement pointing at the domain that hosts the AASA file.
44
+
45
+ In `app.json`, add both `applinks:` (parent) and `appclips:` (Clip invocation) entries:
46
+
47
+ ```json
48
+ {
49
+ "expo": {
50
+ "ios": {
51
+ "associatedDomains": [
52
+ "applinks:may20.expo.app",
53
+ "appclips:may20.expo.app"
54
+ ]
55
+ }
56
+ }
57
+ }
58
+ ```
59
+
60
+ In `targets/clip/expo-target.config.js`, declare the Clip's entitlement:
61
+
62
+ ```js
63
+ /** @type {import('@bacons/apple-targets/app.plugin').ConfigFunction} */
64
+ module.exports = (config) => ({
65
+ type: "clip",
66
+ icon: "https://github.com/expo.png",
67
+ entitlements: {
68
+ "com.apple.developer.associated-domains": ["appclips:may20.expo.app"],
69
+ },
70
+ });
71
+ ```
72
+
73
+ > If you skip this, `expo prebuild` will print: `Apple App Clip may require the associated domains entitlement but none were found`.
74
+
75
+ ## 4. Register bundle IDs and create the App Store entry
76
+
77
+ ```sh
78
+ bunx setup-safari
79
+ ```
80
+
81
+ This logs in to the Apple Developer account, registers `com.bacon.may20`, creates the App Store Connect entry, and prints:
82
+
83
+ - A starter `apple-app-site-association` JSON
84
+ - A `<meta name="apple-itunes-app">` tag with the iTunes app id
85
+ - Team ID, iTunes ID, and Bundle ID
86
+
87
+ ## 5. Host the AASA file
88
+
89
+ App Clips are invoked when iOS fetches `https://<your-domain>/.well-known/apple-app-site-association` and finds a matching `appclips` entry.
90
+
91
+ ```sh
92
+ mkdir -p public/.well-known
93
+ touch public/.well-known/apple-app-site-association
94
+ ```
95
+
96
+ Paste the JSON `setup-safari` printed, but **add an `appclips` block** for the Clip's full app ID (`<TeamID>.<ClipBundleID>`). The output of `setup-safari` only covers the parent app:
97
+
98
+ ```json
99
+ {
100
+ "applinks": {
101
+ "details": [
102
+ {
103
+ "appIDs": ["XX57RJ5UTD.com.bacon.may20"],
104
+ "components": [{ "/": "*", "comment": "Matches all routes" }]
105
+ }
106
+ ]
107
+ },
108
+ "appclips": {
109
+ "apps": ["XX57RJ5UTD.com.bacon.may20.clip"]
110
+ },
111
+ "activitycontinuation": {
112
+ "apps": ["XX57RJ5UTD.com.bacon.may20"]
113
+ },
114
+ "webcredentials": {
115
+ "apps": ["XX57RJ5UTD.com.bacon.may20"]
116
+ }
117
+ }
118
+ ```
119
+
120
+ Notes:
121
+
122
+ - The file has **no extension** and **no `Content-Type` requirements** beyond being served as-is. Expo Router static export serves files in `public/` verbatim.
123
+ - The `appclips` block is what lets a URL on the domain launch the Clip.
124
+ - `webcredentials` is used for sharing credentials between the website, parent app, and the App Clip.
125
+ - `activitycontinuation` is optional and used for sharing the link between mobile and desktop. Must be used with `Head` from expo-router — see https://docs.expo.dev/router/advanced/apple-handoff/
126
+ - Notation and route-disabling details: https://sosumi.ai/documentation/xcode/supporting-associated-domains
127
+
128
+ ## 6. Add the Smart App Banner meta tag
129
+
130
+ Create `src/app/+html.tsx` (Expo Router's HTML shell) and add the tag from `setup-safari`. Create the versioned template if it doesn't exist:
131
+
132
+ ```sh
133
+ bunx expo customize src/app/+html.tsx
134
+ ```
135
+
136
+ Add the meta tag to the `<head>`:
137
+
138
+ ```tsx
139
+ import { ScrollViewStyleReset } from "expo-router/html";
140
+
141
+ export default function Root({ children }: { children: React.ReactNode }) {
142
+ return (
143
+ <html lang="en">
144
+ <head>
145
+ <meta charSet="utf-8" />
146
+ <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
147
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
148
+ <meta name="apple-itunes-app" content="app-id=6771566491" />
149
+ <ScrollViewStyleReset />
150
+ </head>
151
+ <body>{children}</body>
152
+ </html>
153
+ );
154
+ }
155
+ ```
156
+
157
+ To make the website show the App Clip card instead of the install card, use:
158
+
159
+ ```html
160
+ <meta
161
+ name="apple-itunes-app"
162
+ content="app-id=6771566491, app-clip-bundle-id=com.bacon.may20.clip, app-clip-display=card"
163
+ />
164
+ ```
165
+
166
+ ## 7. Deploy the website
167
+
168
+ The AASA file must be live before iOS will trust the association. Use [EAS Hosting](https://docs.expo.dev/eas/hosting/):
169
+
170
+ ```sh
171
+ bunx expo export -p web
172
+ eas deploy --prod
173
+ ```
174
+
175
+ This publishes the site (including `/.well-known/apple-app-site-association`) at `https://<slug>.expo.app`. Verify:
176
+
177
+ ```sh
178
+ curl https://may20.expo.app/.well-known/apple-app-site-association
179
+ ```
180
+
181
+ ## 8. Mirror permissions
182
+
183
+ Inspect the parent app's permissions after prebuild:
184
+
185
+ ```sh
186
+ npx expo config --type introspect
187
+ ```
188
+
189
+ Look at the `infoPlist` object — mirror the permission keys in the App Clip's `Info.plist` so matching APIs can be used from the Clip.
190
+
191
+ Set `deploymentTarget: "17.6"` in the Clip's target config — App Clips have a higher minimum size limit in iOS 17.6.
192
+
193
+ If the app uses push notifications or location services, add to the App Clip's `Info.plist` to request the necessary permissions:
194
+
195
+ ```xml
196
+ <key>NSAppClip</key>
197
+ <dict>
198
+ <key>NSAppClipRequestEphemeralUserNotification</key>
199
+ <false/>
200
+ <key>NSAppClipRequestLocationConfirmation</key>
201
+ <true/>
202
+ </dict>
203
+ ```
204
+
205
+ ## 9. Build and submit to TestFlight
206
+
207
+ ```sh
208
+ bunx testflight
209
+ ```
210
+
211
+ This will:
212
+
213
+ 1. Generate an `eas.json` if missing.
214
+ 2. Set up credentials for **both** targets (parent + Clip). Each gets its own provisioning profile but can share a single Distribution Certificate.
215
+ 3. Sync capabilities — note `Enabled: Associated Domains` for the Clip target.
216
+ 4. Build, upload, and schedule a TestFlight submission.
217
+
218
+ ## 10. Configure App Clip metadata
219
+
220
+ Pull existing App Store metadata to local:
221
+
222
+ ```sh
223
+ eas metadata:pull
224
+ ```
225
+
226
+ Add `apple.appClip` to `store.config.json`. Up to 3 invocation URLs can launch the Clip from a web page:
227
+
228
+ ```json
229
+ {
230
+ "configVersion": 0,
231
+ "apple": {
232
+ "appClip": {
233
+ "defaultExperience": {
234
+ "action": "PLAY",
235
+ "releaseWithAppStoreVersion": true,
236
+ "reviewDetail": {
237
+ "invocationUrls": ["https://may20.expo.app/", null, null]
238
+ },
239
+ "info": {
240
+ "en-US": {
241
+ "subtitle": "Instantly native with Expo",
242
+ "headerImage": "store/apple/app-clip/en-US/asc-app-clip.png"
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ ```
250
+
251
+ The `headerImage` must be a 1800x1200 PNG with no opacity.
252
+
253
+ Push back to the store:
254
+
255
+ ```sh
256
+ eas metadata:push
257
+ ```
258
+
259
+ Apple's recommended App Clip metadata guidelines: https://sosumi.ai/documentation/appclip/configuring-the-launch-experience-of-your-app-clip
260
+
261
+ ## What you get
262
+
263
+ - Parent app target: `com.bacon.may20`
264
+ - App Clip target: `com.bacon.may20.clip`, lives in `targets/clip/`
265
+ - AASA hosted at `https://may20.expo.app/.well-known/apple-app-site-association`
266
+ - Smart App Banner meta tag on every web route
267
+ - Every route linked to its native counterpart
268
+ - TestFlight build of the parent app with the Clip embedded
269
+
270
+ Once Apple invokes the Clip from a URL on the domain, iOS opens `targets/clip/`'s entry point which loads the React Native app.
271
+
272
+ ## Native detection (optional)
273
+
274
+ To let JS detect when it's running inside an App Clip and present an install prompt for the full app, create a local Expo module (`bunx create-expo-module --local`) that exposes `navigator.appClip.prompt()`.
275
+
276
+ See [./references/native-module.md](./references/native-module.md) for the Swift module, TypeScript interface, and usage.
277
+
278
+ ## References
279
+
280
+ - ./references/native-module.md — Local Expo module to detect App Clip context and present the SKOverlay install prompt
@@ -0,0 +1,4 @@
1
+ display_name: "Add App Clip"
2
+ short_description: "Add an iOS App Clip target to an Expo app"
3
+ default_prompt:
4
+ - "Use $add-app-clip: Add an iOS App Clip target to an Expo app."
@@ -0,0 +1,96 @@
1
+ # Native App Clip detection
2
+
3
+ Create a local Expo module so JS can detect when the app is running inside an App Clip and present the install prompt for the full app.
4
+
5
+ ```sh
6
+ bunx create-expo-module --local
7
+ ```
8
+
9
+ ## Swift module
10
+
11
+ ```swift
12
+ import ExpoModulesCore
13
+ import StoreKit
14
+
15
+ internal class MissingCurrentWindowSceneException: Exception {
16
+ override var reason: String {
17
+ "Cannot determine the current window scene in which to present the App Clip install overlay."
18
+ }
19
+ }
20
+
21
+ internal class MissingContainerURLException: Exception {
22
+ override var reason: String {
23
+ "Cannot determine the container URL."
24
+ }
25
+ }
26
+
27
+ public class AppClipModule: Module {
28
+ private static let isAppClip: Bool = {
29
+ if let infoPlist = Bundle.main.infoDictionary, let _ = infoPlist["NSAppClip"] as? [String: Any] {
30
+ return true
31
+ }
32
+ return false
33
+ }()
34
+
35
+ public func definition() -> ModuleDefinition {
36
+ Name("AppClip")
37
+
38
+ Constant("isAppClip") {
39
+ AppClipModule.isAppClip
40
+ }
41
+
42
+ // Display overlay to advertise full app.
43
+ // https://developer.apple.com/documentation/app_clips/recommending_your_app_to_app_clip_users
44
+ AsyncFunction("prompt") {
45
+ if #available(iOS 16, *) {
46
+ guard let currentScene = UIApplication.shared.connectedScenes.first as? UIWindowScene else {
47
+ throw MissingCurrentWindowSceneException()
48
+ }
49
+
50
+ let config = SKOverlay.AppClipConfiguration(position: .bottom)
51
+ let overlay = SKOverlay(configuration: config)
52
+ overlay.present(in: currentScene)
53
+ }
54
+ }.runOnQueue(DispatchQueue.main)
55
+ }
56
+ }
57
+ ```
58
+
59
+ ## TypeScript interface
60
+
61
+ ```ts
62
+ import { NativeModule, requireOptionalNativeModule } from "expo";
63
+
64
+ declare class AppClipModule extends NativeModule<{}> {
65
+ prompt(): void;
66
+ isAppClip?: boolean;
67
+ }
68
+
69
+ const AppClipNative = requireOptionalNativeModule<AppClipModule>("AppClip");
70
+
71
+ if (AppClipNative?.isAppClip) {
72
+ navigator.appClip = {
73
+ prompt: AppClipNative.prompt,
74
+ };
75
+ }
76
+
77
+ declare global {
78
+ interface Navigator {
79
+ /**
80
+ * Only available in an App Clip context.
81
+ * @expo
82
+ */
83
+ appClip?: {
84
+ /** Open the SKOverlay */
85
+ prompt: () => void;
86
+ };
87
+ }
88
+ }
89
+
90
+ export {};
91
+ ```
92
+
93
+ ## Usage
94
+
95
+ - Detect App Clip context: `if (navigator.appClip) { ... }`
96
+ - Prompt to install the full app: `navigator.appClip?.prompt()`
@@ -0,0 +1,321 @@
1
+ ---
2
+ name: building-native-ui
3
+ description: Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.
4
+ version: 1.0.1
5
+ license: MIT
6
+ ---
7
+
8
+ # Expo UI Guidelines
9
+
10
+ ## References
11
+
12
+ Consult these resources as needed:
13
+
14
+ ```
15
+ references/
16
+ animations.md Reanimated: entering, exiting, layout, scroll-driven, gestures
17
+ controls.md Native iOS: Switch, Slider, SegmentedControl, DateTimePicker, Picker
18
+ form-sheet.md Form sheets in expo-router: configuration, footers and background interaction.
19
+ gradients.md CSS gradients via experimental_backgroundImage (New Arch only)
20
+ icons.md SF Symbols via expo-image (sf: source), names, animations, weights
21
+ media.md Camera, audio, video, and file saving
22
+ route-structure.md Route conventions, dynamic routes, groups, folder organization
23
+ search.md Search bar with headers, useSearch hook, filtering patterns
24
+ storage.md SQLite, AsyncStorage, SecureStore
25
+ tabs.md NativeTabs, migration from JS tabs, iOS 26 features
26
+ toolbar-and-headers.md Stack headers and toolbar buttons, menus, search (iOS only)
27
+ visual-effects.md Blur (expo-blur) and liquid glass (expo-glass-effect)
28
+ webgpu-three.md 3D graphics, games, GPU visualizations with WebGPU and Three.js
29
+ zoom-transitions.md Apple Zoom: fluid zoom transitions with Link.AppleZoom (iOS 18+)
30
+ ```
31
+
32
+ ## Running the App
33
+
34
+ **CRITICAL: Always try Expo Go first before creating custom builds.**
35
+
36
+ Most Expo apps work in Expo Go without any custom native code. Before running `npx expo run:ios` or `npx expo run:android`:
37
+
38
+ 1. **Start with Expo Go**: Run `npx expo start` and scan the QR code with Expo Go
39
+ 2. **Check if features work**: Test your app thoroughly in Expo Go
40
+ 3. **Only create custom builds when required** - see below
41
+
42
+ ### When Custom Builds Are Required
43
+
44
+ You need `npx expo run:ios/android` or `eas build` ONLY when using:
45
+
46
+ - **Local Expo modules** (custom native code in `modules/`)
47
+ - **Apple targets** (widgets, app clips, extensions via `@bacons/apple-targets`)
48
+ - **Third-party native modules** not included in Expo Go
49
+ - **Custom native configuration** that can't be expressed in `app.json`
50
+
51
+ ### When Expo Go Works
52
+
53
+ Expo Go supports a huge range of features out of the box:
54
+
55
+ - All `expo-*` packages (camera, location, notifications, etc.)
56
+ - Expo Router navigation
57
+ - Most UI libraries (reanimated, gesture handler, etc.)
58
+ - Push notifications, deep links, and more
59
+
60
+ **If you're unsure, try Expo Go first.** Creating custom builds adds complexity, slower iteration, and requires Xcode/Android Studio setup.
61
+
62
+ ## Code Style
63
+
64
+ - Be cautious of unterminated strings. Ensure nested backticks are escaped; never forget to escape quotes correctly.
65
+ - Always use import statements at the top of the file.
66
+ - Always use kebab-case for file names, e.g. `comment-card.tsx`
67
+ - Always remove old route files when moving or restructuring navigation
68
+ - Never use special characters in file names
69
+ - Configure tsconfig.json with path aliases, and prefer aliases over relative imports for refactors.
70
+
71
+ ## Routes
72
+
73
+ See `./references/route-structure.md` for detailed route conventions.
74
+
75
+ - Routes belong in the `app` directory.
76
+ - Never co-locate components, types, or utilities in the app directory. This is an anti-pattern.
77
+ - Ensure the app always has a route that matches "/", it may be inside a group route.
78
+
79
+ ## Library Preferences
80
+
81
+ - Never use modules removed from React Native such as Picker, WebView, SafeAreaView, or AsyncStorage
82
+ - Never use legacy expo-permissions
83
+ - `expo-audio` not `expo-av`
84
+ - `expo-video` not `expo-av`
85
+ - `expo-image` with `source="sf:name"` for SF Symbols, not `expo-symbols` or `@expo/vector-icons`
86
+ - `react-native-safe-area-context` not react-native SafeAreaView
87
+ - `process.env.EXPO_OS` not `Platform.OS`
88
+ - `React.use` not `React.useContext`
89
+ - `expo-image` Image component instead of intrinsic element `img`
90
+ - `expo-glass-effect` for liquid glass backdrops
91
+
92
+ ## Responsiveness
93
+
94
+ - Always wrap root component in a scroll view for responsiveness
95
+ - Use `<ScrollView contentInsetAdjustmentBehavior="automatic" />` instead of `<SafeAreaView>` for smarter safe area insets
96
+ - `contentInsetAdjustmentBehavior="automatic"` should be applied to FlatList and SectionList as well
97
+ - Use flexbox instead of Dimensions API
98
+ - ALWAYS prefer `useWindowDimensions` over `Dimensions.get()` to measure screen size
99
+
100
+ ## Behavior
101
+
102
+ - Use expo-haptics conditionally on iOS to make more delightful experiences
103
+ - Use views with built-in haptics like `<Switch />` from React Native and `@react-native-community/datetimepicker`
104
+ - When a route belongs to a Stack, its first child should almost always be a ScrollView with `contentInsetAdjustmentBehavior="automatic"` set
105
+ - When adding a `ScrollView` to the page it should almost always be the first component inside the route component
106
+ - Prefer `headerSearchBarOptions` in Stack.Screen options to add a search bar
107
+ - Use the `<Text selectable />` prop on text containing data that could be copied
108
+ - Consider formatting large numbers like 1.4M or 38k
109
+ - Never use intrinsic elements like 'img' or 'div' unless in a webview or Expo DOM component
110
+
111
+ # Styling
112
+
113
+ Follow Apple Human Interface Guidelines.
114
+
115
+ ## General Styling Rules
116
+
117
+ - Prefer flex gap over margin and padding styles
118
+ - Prefer padding over margin where possible
119
+ - Always account for safe area, either with stack headers, tabs, or ScrollView/FlatList `contentInsetAdjustmentBehavior="automatic"`
120
+ - Ensure both top and bottom safe area insets are accounted for
121
+ - Inline styles not StyleSheet.create unless reusing styles is faster
122
+ - Add entering and exiting animations for state changes
123
+ - Use `{ borderCurve: 'continuous' }` for rounded corners unless creating a capsule shape
124
+ - ALWAYS use a navigation stack title instead of a custom text element on the page
125
+ - When padding a ScrollView, use `contentContainerStyle` padding and gap instead of padding on the ScrollView itself (reduces clipping)
126
+ - CSS and Tailwind are not supported - use inline styles
127
+
128
+ ## Text Styling
129
+
130
+ - Add the `selectable` prop to every `<Text/>` element displaying important data or error messages
131
+ - Counters should use `{ fontVariant: 'tabular-nums' }` for alignment
132
+
133
+ ## Shadows
134
+
135
+ Use CSS `boxShadow` style prop. NEVER use legacy React Native shadow or elevation styles.
136
+
137
+ ```tsx
138
+ <View style={{ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)" }} />
139
+ ```
140
+
141
+ 'inset' shadows are supported.
142
+
143
+ # Navigation
144
+
145
+ ## Link
146
+
147
+ Use `<Link href="/path" />` from 'expo-router' for navigation between routes.
148
+
149
+ ```tsx
150
+ import { Link } from 'expo-router';
151
+
152
+ // Basic link
153
+ <Link href="/path" />
154
+
155
+ // Wrapping custom components
156
+ <Link href="/path" asChild>
157
+ <Pressable>...</Pressable>
158
+ </Link>
159
+ ```
160
+
161
+ Whenever possible, include a `<Link.Preview>` to follow iOS conventions. Add context menus and previews frequently to enhance navigation.
162
+
163
+ ## Stack
164
+
165
+ - ALWAYS use `_layout.tsx` files to define stacks
166
+ - Use Stack from 'expo-router/stack' for native navigation stacks
167
+
168
+ ### Page Title
169
+
170
+ Set the page title in Stack.Screen options:
171
+
172
+ ```tsx
173
+ <Stack.Screen options={{ title: "Home" }} />
174
+ ```
175
+
176
+ ## Context Menus
177
+
178
+ Add long press context menus to Link components:
179
+
180
+ ```tsx
181
+ import { Link } from "expo-router";
182
+
183
+ <Link href="/settings" asChild>
184
+ <Link.Trigger>
185
+ <Pressable>
186
+ <Card />
187
+ </Pressable>
188
+ </Link.Trigger>
189
+ <Link.Menu>
190
+ <Link.MenuAction
191
+ title="Share"
192
+ icon="square.and.arrow.up"
193
+ onPress={handleSharePress}
194
+ />
195
+ <Link.MenuAction
196
+ title="Block"
197
+ icon="nosign"
198
+ destructive
199
+ onPress={handleBlockPress}
200
+ />
201
+ <Link.Menu title="More" icon="ellipsis">
202
+ <Link.MenuAction title="Copy" icon="doc.on.doc" onPress={() => {}} />
203
+ <Link.MenuAction
204
+ title="Delete"
205
+ icon="trash"
206
+ destructive
207
+ onPress={() => {}}
208
+ />
209
+ </Link.Menu>
210
+ </Link.Menu>
211
+ </Link>;
212
+ ```
213
+
214
+ ## Link Previews
215
+
216
+ Use link previews frequently to enhance navigation:
217
+
218
+ ```tsx
219
+ <Link href="/settings">
220
+ <Link.Trigger>
221
+ <Pressable>
222
+ <Card />
223
+ </Pressable>
224
+ </Link.Trigger>
225
+ <Link.Preview />
226
+ </Link>
227
+ ```
228
+
229
+ Link preview can be used with context menus.
230
+
231
+ ## Modal
232
+
233
+ Present a screen as a modal:
234
+
235
+ ```tsx
236
+ <Stack.Screen name="modal" options={{ presentation: "modal" }} />
237
+ ```
238
+
239
+ Prefer this to building a custom modal component.
240
+
241
+ ## Sheet
242
+
243
+ Present a screen as a dynamic form sheet:
244
+
245
+ ```tsx
246
+ <Stack.Screen
247
+ name="sheet"
248
+ options={{
249
+ presentation: "formSheet",
250
+ sheetGrabberVisible: true,
251
+ sheetAllowedDetents: [0.5, 1.0],
252
+ contentStyle: { backgroundColor: "transparent" },
253
+ }}
254
+ />
255
+ ```
256
+
257
+ - Using `contentStyle: { backgroundColor: "transparent" }` makes the background liquid glass on iOS 26+.
258
+
259
+ ## Common route structure
260
+
261
+ A standard app layout with tabs and stacks inside each tab:
262
+
263
+ ```
264
+ app/
265
+ _layout.tsx — <NativeTabs />
266
+ (index,search)/
267
+ _layout.tsx — <Stack />
268
+ index.tsx — Main list
269
+ search.tsx — Search view
270
+ ```
271
+
272
+ ```tsx
273
+ // app/_layout.tsx
274
+ import { NativeTabs, Icon, Label } from "expo-router/unstable-native-tabs";
275
+ import { Theme } from "../components/theme";
276
+
277
+ export default function Layout() {
278
+ return (
279
+ <Theme>
280
+ <NativeTabs>
281
+ <NativeTabs.Trigger name="(index)">
282
+ <Icon sf="list.dash" />
283
+ <Label>Items</Label>
284
+ </NativeTabs.Trigger>
285
+ <NativeTabs.Trigger name="(search)" role="search" />
286
+ </NativeTabs>
287
+ </Theme>
288
+ );
289
+ }
290
+ ```
291
+
292
+ Create a shared group route so both tabs can push common screens:
293
+
294
+ ```tsx
295
+ // app/(index,search)/_layout.tsx
296
+ import { Stack } from "expo-router/stack";
297
+ import { PlatformColor } from "react-native";
298
+
299
+ export default function Layout({ segment }) {
300
+ const screen = segment.match(/\((.*)\)/)?.[1]!;
301
+ const titles: Record<string, string> = { index: "Items", search: "Search" };
302
+
303
+ return (
304
+ <Stack
305
+ screenOptions={{
306
+ headerTransparent: true,
307
+ headerShadowVisible: false,
308
+ headerLargeTitleShadowVisible: false,
309
+ headerLargeStyle: { backgroundColor: "transparent" },
310
+ headerTitleStyle: { color: PlatformColor("label") },
311
+ headerLargeTitle: true,
312
+ headerBlurEffect: "none",
313
+ headerBackButtonDisplayMode: "minimal",
314
+ }}
315
+ >
316
+ <Stack.Screen name={screen} options={{ title: titles[screen] }} />
317
+ <Stack.Screen name="i/[id]" options={{ headerLargeTitle: false }} />
318
+ </Stack>
319
+ );
320
+ }
321
+ ```
@@ -0,0 +1,4 @@
1
+ display_name: "Building Native UI"
2
+ short_description: "Complete guide for building beautiful apps with Expo Router"
3
+ default_prompt:
4
+ - "Use $building-native-ui: Complete guide for building beautiful apps with Expo Router."