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
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"@callstack/react-native-visionos": "0.76 - 0.79",
"@expo/config-plugins": ">=5.0",
"react": "18.2 - 19.2",
"react-native": "0.76 - 0.86 || >=0.86.0-0 <0.87.0",
"react-native": "0.76 - 0.87 || >=0.88.0-0 <0.88.0",
"react-native-macos": "^0.0.0-0 || 0.76 - 0.81",
"react-native-windows": "^0.0.0-0 || 0.76 - 0.83"
},
Expand Down
16 changes: 11 additions & 5 deletions packages/app/scripts/internal/set-react-version.mts
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,23 @@ function fetchPackageInfo(pkg: string, version: string): Promise<Manifest> {
/**
* Fetches the template manifest for the specified React Native version.
*/
function fetchTemplateManifest(version: string): Promise<Manifest> {
async function fetchTemplateManifest(version: string): Promise<Manifest> {
const url = `https://raw.githubusercontent.com/react-native-community/template/refs/heads/${version}-stable/template/package.json`;
console.log(`Fetching template manifest from ${url}`);
return fetch(url, {
const res = await fetch(url, {
headers: {
Accept:
"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*",
},
})
.then((res) => res.text())
.then((text) => JSON.parse(text));
});

const body = await res.text();
if (res.status !== 200) {
console.error(`Failed to fetch template: ${body}`);
return { name: "", version: "" };
}

return JSON.parse(body);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13355,7 +13355,7 @@ __metadata:
"@callstack/react-native-visionos": 0.76 - 0.79
"@expo/config-plugins": ">=5.0"
react: 18.2 - 19.2
react-native: 0.76 - 0.86 || >=0.86.0-0 <0.87.0
react-native: 0.76 - 0.87 || >=0.88.0-0 <0.88.0
react-native-macos: ^0.0.0-0 || 0.76 - 0.81
react-native-windows: ^0.0.0-0 || 0.76 - 0.83
peerDependenciesMeta:
Expand Down
Loading