Commit b205164
committed
fix(web): Fix web build error with React 19
This commit introduces two changes to fix the web build for Expo 53 and React 19.
First, it creates a separate entry point for the web build (`index.web.js`) that uses the `createRoot` API from `react-dom/client`. This is necessary for React 19.
Second, it adds a `metro.config.js` file to fix a module resolution issue with `react-native`. The configuration forces Metro to resolve `react-native` from the project's `node_modules`, which prevents the `Unable to resolve "../Utilities/Platform"` error.1 parent 4f24794 commit b205164
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments