From 6ca0765acd6fc46759663729f6b521657c667019 Mon Sep 17 00:00:00 2001 From: Parth Bhardwaj <196071556+bhardwajparth51@users.noreply.github.com> Date: Sat, 25 Jul 2026 20:10:09 +0530 Subject: [PATCH 1/2] fix(react-native): import FileSystem from expo-file-system/legacy for Expo SDK 55 --- templates/react-native/src/services/template.ts.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/react-native/src/services/template.ts.twig b/templates/react-native/src/services/template.ts.twig index 2ae198be9c..1a01125a88 100644 --- a/templates/react-native/src/services/template.ts.twig +++ b/templates/react-native/src/services/template.ts.twig @@ -2,7 +2,7 @@ import { Service } from '../service'; import { {{ spec.title | caseUcfirst}}Exception, Client } from '../client'; import type { Models } from '../models'; import type { UploadProgress, Payload } from '../client'; -import * as FileSystem from 'expo-file-system'; +import * as FileSystem from 'expo-file-system/legacy'; import { Platform as RNPlatform } from 'react-native'; {% set added = [] %} From 07301ac56b0781d92bee0d1b8035723babcc57ac Mon Sep 17 00:00:00 2001 From: Parth Bhardwaj <196071556+bhardwajparth51@users.noreply.github.com> Date: Sat, 25 Jul 2026 20:20:28 +0530 Subject: [PATCH 2/2] test(react-native): update rollup alias to map expo-file-system/legacy to test shim --- tests/e2e/languages/react-native/rollup.test.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/languages/react-native/rollup.test.config.mjs b/tests/e2e/languages/react-native/rollup.test.config.mjs index cc2e90bad7..6d77fb7be9 100644 --- a/tests/e2e/languages/react-native/rollup.test.config.mjs +++ b/tests/e2e/languages/react-native/rollup.test.config.mjs @@ -21,6 +21,10 @@ export default { alias({ entries: [ { find: 'react-native', replacement: 'react-native-web' }, + { + find: 'expo-file-system/legacy', + replacement: path.resolve(__dirname, 'shims/expo-file-system.js'), + }, { find: 'expo-file-system', replacement: path.resolve(__dirname, 'shims/expo-file-system.js'),