Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 43 additions & 31 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/expo-blank-with-vite-metro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "expo start"
},
"dependencies": {
"expo": "~55.0.6",
"expo": "~55.0.7",
"one": "workspace:*",
"react": "19.2.0",
"react-dom": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/expo-blank/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"web": "expo start --web"
},
"dependencies": {
"expo": "~55.0.6",
"expo": "~55.0.7",
"expo-status-bar": "~55.0.4",
"react": "19.2.0",
"react-native": "0.83.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/one-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@react-navigation/native": "~7.1.19",
"expo": "~55.0.6",
"expo": "~55.0.7",
"one": "workspace:*",
"react": "19.2.0",
"react-native": "0.83.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/testflight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dotenv": "^16.4.5",
"drizzle-kit": "^0.24.2",
"drizzle-orm": "^0.33.0",
"expo": "~55.0.6",
"expo": "~55.0.7",
"expo-build-properties": "~55.0.9",
"one": "workspace:*",
"postgres": "^3.4.4",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"esbuild": "0.25.11",
"vite": "^8.0.0",
"basic-ftp": "5.2.0",
"expo": "55.0.6",
"expo": "55.0.7",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-native": "0.83.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/one/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"create-vxrn": "workspace:*",
"escape-string-regexp": "^5.0.0",
"expo-linking": "~55.0.7",
"expo-modules-core": "~55.0.15",
"expo-modules-core": "~55.0.16",
"fast-deep-equal": "^3.1.3",
"fast-glob": "^3.3.3",
"fs-extra": "^11.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/vite-plugin-metro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"peerDependencies": {
"@expo/metro-config": "~55.0.9",
"expo": "~55.0.6",
"expo": "~55.0.7",
"metro": "^0.83",
"metro-config": "*",
"react-native": "~0.83.2",
Expand All @@ -75,7 +75,7 @@
"@types/babel__helper-plugin-utils": "^7",
"@types/node": "^24.10.0",
"depcheck": "^1.4.7",
"expo": "~55.0.6",
"expo": "~55.0.7",
"metro": "^0.83",
"vite": "^8.0.0"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/vxrn/src/exports/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ export default defineConfig({
}

await ensureDir(cacheDir)
// Ensure compiler-cache exists before Metro starts, as its FallbackWatcher
// will try to watch this directory before the compiler lazily creates it
await ensureDir(`${cacheDir}/compiler-cache`)

const serverConfig = await getViteServerConfig(options, config)

Expand Down
28 changes: 20 additions & 8 deletions packages/vxrn/src/plugins/expoManifestRequestHandlerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,18 @@ export function expoManifestRequestHandlerPlugin(

manifestHandlerMiddleware._getManifestResponseAsync = async (...args) => {
try {
const results = await manifestHandlerMiddleware._origGetManifestResponseAsync(
...args
)
const response =
await manifestHandlerMiddleware._origGetManifestResponseAsync(...args)

// Expo 55.0.7+ returns a web Response object instead of { body: string, headers }
const isWebResponse = response instanceof Response
const bodyText = isWebResponse ? await response.text() : response.body

// Seems that results.body may have a leading and trailing string that is not JSON, so we need to extract the JSON from it.
// Seems that the body may have a leading and trailing string that is not JSON, so we need to extract the JSON from it.
const [, beforeBodyJson, bodyJson, afterBodyJson] =
results.body.match(/([^{]*)({.*})([^}]*)/) || []
bodyText.match(/([^{]*)({.*})([^}]*)/) || []
if (!bodyJson) {
throw new Error(`Unrecognized manifest response from expo: ${results.body}`)
throw new Error(`Unrecognized manifest response from expo: ${bodyText}`)
}

const parsedBody = JSON.parse(bodyJson)
Expand Down Expand Up @@ -167,9 +170,18 @@ export function expoManifestRequestHandlerPlugin(
imageUrl:
'https://github.com/user-attachments/assets/e816c207-e7d2-4c2e-8aa5-0d4cbaa622bf', // TODO: Host this image somewhere.
}
results.body = beforeBodyJson + JSON.stringify(parsedBody) + afterBodyJson

return results
const newBody = beforeBodyJson + JSON.stringify(parsedBody) + afterBodyJson

if (isWebResponse) {
return new Response(newBody, {
status: response.status,
headers: response.headers,
})
}

response.body = newBody
return response
} catch (e) {
if (e instanceof Error) {
e.message = `[vxrn:expo-manifest-request-handler] Failed to parse the Expo manifest response from expo: ${e.message}`
Expand Down
2 changes: 1 addition & 1 deletion repro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"serve": "one serve"
},
"dependencies": {
"expo": "~55.0.6",
"expo": "~55.0.7",
"react": "19.2.0",
"react-dom": "19.2.0",
"react-native": "0.83.2",
Expand Down
2 changes: 1 addition & 1 deletion tests/hmr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@react-navigation/native": "~7.1.19",
"expo": "~55.0.6",
"expo": "~55.0.7",
"one": "workspace:*",
"react": "19.2.0",
"react-dom": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/rn-test-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@react-navigation/native": "~7.1.19",
"expo": "~55.0.6",
"expo": "~55.0.7",
"expo-build-properties": "~55.0.9",
"expo-clipboard": "~55.0.8",
"one": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion tests/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"tamagui": "2.0.0-rc.22"
},
"devDependencies": {
"expo": "~55.0.6"
"expo": "~55.0.7"
}
}
2 changes: 1 addition & 1 deletion tests/test-layout-flicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@react-navigation/native": "~7.1.19",
"expo": "~55.0.6",
"expo": "~55.0.7",
"one": "workspace:*",
"react": "19.2.0",
"react-dom": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/test-loaders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@react-navigation/native": "~7.1.19",
"@tamagui/config": "2.0.0-rc.22",
"@vxrn/color-scheme": "workspace:*",
"expo": "~55.0.6",
"expo": "~55.0.7",
"one": "workspace:*",
"postgres": "^3.4.4",
"react": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/test-native-tree-shaking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@react-navigation/native": "~7.1.19",
"@vxrn/mdx": "workspace:*",
"expo": "~55.0.6",
"expo": "~55.0.7",
"mdx-bundler": "^10.0.2",
"one": "workspace:*",
"react": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/test-route-file-watching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@react-navigation/native": "~7.1.19",
"expo": "~55.0.6",
"expo": "~55.0.7",
"one": "workspace:*",
"react": "19.2.0",
"react-dom": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/test-routing-flicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@react-navigation/native": "~7.1.19",
"@tamagui/config": "2.0.0-rc.22",
"@vxrn/color-scheme": "workspace:*",
"expo": "~55.0.6",
"expo": "~55.0.7",
"one": "workspace:*",
"react": "19.2.0",
"react-dom": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/test-use-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"@react-navigation/native": "~7.1.19",
"expo": "~55.0.6",
"expo": "~55.0.7",
"one": "workspace:*",
"react": "19.2.0",
"react-dom": "19.2.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/test-weird-deps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@rn-primitives/slot": "^1.1.0",
"@sentry/react-native": "^7.4.0",
"@shopify/flash-list": "^2.1.0",
"expo": "~55.0.6",
"expo": "~55.0.7",
"expo-image": "^3.0.10",
"expo-structured-headers": "~55.0.0",
"expo-updates": "~55.0.13",
Expand Down
2 changes: 1 addition & 1 deletion tests/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@vxrn/color-scheme": "workspace:*",
"@vxrn/mdx": "workspace:*",
"@vxrn/test-package": "workspace:*",
"expo": "~55.0.6",
"expo": "~55.0.7",
"expo-clipboard": "~55.0.8",
"expo-linear-gradient": "~55.0.8",
"expo-video": "~55.0.10",
Expand Down
Loading