Repository navigation
Commit 02b4813
fix(mobile): navigation layouts render as elements under the React Compiler
React Navigation calls layout and screenLayout as plain functions during its
own render. With the compiler on, a component passed there allocates its memo
cache inside the navigator's hooks, which crashed Android at launch with
useMemoCache size mismatches.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent da90d36 commit 02b4813
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | | - | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
673 | 675 | | |
674 | 676 | | |
675 | 677 | | |
| |||
1012 | 1014 | | |
1013 | 1015 | | |
1014 | 1016 | | |
1015 | | - | |
| 1017 | + | |
1016 | 1018 | | |
1017 | 1019 | | |
1018 | 1020 | | |
| |||
0 commit comments