Skip to content

Commit 1dedb94

Browse files
committed
repro: react-native 0.86 Metro module loading failure
1 parent 2be7cea commit 1dedb94

File tree

3 files changed

+862
-150
lines changed

3 files changed

+862
-150
lines changed

apps/playground/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dependencies": {
99
"react": "19.2.3",
1010
"react-dom": "19.2.3",
11-
"react-native": "0.82.1",
11+
"react-native": "0.86.0-nightly-20260409-b1d12f535",
1212
"react-native-web": "^0.21.2"
1313
},
1414
"devDependencies": {
@@ -18,10 +18,11 @@
1818
"@react-native-community/cli": "20.0.0",
1919
"@react-native-community/cli-platform-android": "20.0.0",
2020
"@react-native-community/cli-platform-ios": "20.0.0",
21-
"@react-native/babel-preset": "0.82.1",
22-
"@react-native/eslint-config": "0.82.1",
23-
"@react-native/metro-config": "0.82.1",
24-
"@react-native/typescript-config": "0.82.1",
21+
"@react-native/babel-preset": "0.86.0-nightly-20260409-b1d12f535",
22+
"@react-native/eslint-config": "0.86.0-nightly-20260409-b1d12f535",
23+
"@react-native/jest-preset": "0.86.0-nightly-20260409-b1d12f535",
24+
"@react-native/metro-config": "0.86.0-nightly-20260409-b1d12f535",
25+
"@react-native/typescript-config": "0.86.0-nightly-20260409-b1d12f535",
2526
"@react-native-harness/jest": "workspace:*",
2627
"jest": "^30.2.0",
2728
"@react-native-harness/platform-android": "workspace:*",

packages/runtime/src/render/TestComponentOverlay.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,19 @@ export const TestComponentOverlay = (): React.ReactElement | null => {
5252
};
5353

5454
return (
55-
<View key={key} style={styles.overlay} onLayout={handleLayout}>
55+
<View
56+
key={key}
57+
// Keep runtime buildable on RN 0.85+ so this branch stays focused on the Metro loading repro.
58+
style={[StyleSheet.absoluteFill, styles.overlay]}
59+
onLayout={handleLayout}
60+
>
5661
<ErrorBoundary>{element}</ErrorBoundary>
5762
</View>
5863
);
5964
};
6065

6166
const styles = StyleSheet.create({
6267
overlay: {
63-
...StyleSheet.absoluteFillObject,
6468
backgroundColor: '#0a1628',
6569
zIndex: 1000,
6670
},

0 commit comments

Comments
 (0)