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
10 changes: 10 additions & 0 deletions .changeset/rn-088-expo-sdk-58.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@callstack/repack": patch
---

Fix bundling Expo SDK 58 (React Native 0.88) projects:

- React Native's explicit subpath exports (`react-native/setup-env`, `react-native/react-private-interface`, `react-native/asset-registry` and `react-native/unstable-internals-do-not-use`) now resolve even when `react-native` is aliased to its directory, as `@callstack/repack-expo` does, or when package exports are disabled. This fixes `Cannot find module 'react-native/react-private-interface'` and `'react-native/setup-env'`. React Native 0.87 and newer still need `enablePackageExports: true` for `@react-native/asset-utils`.
- `@react-native/assets-registry/registry`, still imported by libraries such as `react-native-svg` 15.15 and earlier, now maps to React Native's own asset registry on React Native 0.87 and newer, so assets register in a single registry.
- React Native polyfills are now also resolved through `expo` and `@expo/metro-config` on React Native 0.87 and newer. This fixes `Unable to locate React Native polyfills` in Expo projects, including with pnpm, without adding `@react-native/js-polyfills` by hand. React Native 0.86 and earlier keep using `rn-get-polyfills.js`.
- When `react-native` isn't aliased, it is now resolved from the project rather than from Re.Pack's own location.
6 changes: 5 additions & 1 deletion apps/tester-app/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ hermesEnabled=true
# Use this property to enable edge-to-edge display support.
# This allows your app to draw behind system bars for an immersive UI.
# Note: Only works with ReactActivity and should not be used with custom Activity.
edgeToEdgeEnabled=true
edgeToEdgeEnabled=true
# Opt out of built-in kotlin and new DSL behavior that ships with AGP 9.
# Starting from AGP 10.x these opt outs will be removed.
android.builtInKotlin=false
android.newDsl=false
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Loading
Loading