Skip to content

Commit aed9c75

Browse files
authored
feat: update pnpm workspace for Expo SDK 58 and React Native 0.88 (#1502)
1 parent 32c32c0 commit aed9c75

31 files changed

Lines changed: 3889 additions & 4018 deletions

File tree

‎.changeset/rn-088-expo-sdk-58.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@callstack/repack": patch
3+
---
4+
5+
Fix bundling Expo SDK 58 (React Native 0.88) projects:
6+
7+
- 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`.
8+
- `@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.
9+
- 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`.
10+
- When `react-native` isn't aliased, it is now resolved from the project rather than from Re.Pack's own location.

‎apps/tester-app/android/gradle.properties‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,8 @@ hermesEnabled=true
5252
# Use this property to enable edge-to-edge display support.
5353
# This allows your app to draw behind system bars for an immersive UI.
5454
# Note: Only works with ReactActivity and should not be used with custom Activity.
55-
edgeToEdgeEnabled=true
55+
edgeToEdgeEnabled=true
56+
# Opt out of built-in kotlin and new DSL behavior that ships with AGP 9.
57+
# Starting from AGP 10.x these opt outs will be removed.
58+
android.builtInKotlin=false
59+
android.newDsl=false

‎apps/tester-app/android/gradle/wrapper/gradle-wrapper.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)