Commit b74e0eb
authored
fix: header config missing ref (#2434)
## Description
This PR changes `ScreenStackHeaderConfig` into a
[forwardRef](@alduzy/reanimated-patch).
This is needed if you want to attach `ref` to it, which
**react-native-reanimated** needs to do
[here](https://github.com/software-mansion/react-native-reanimated/blob/1d417a5c711d60822d25bd8b823f1f5968214bde/apps/common-app/src/examples/ScreenStackHeaderConfigBackgroundColorExample.tsx#L24)
in order to migrate to v4, since the header config is now a function
component and cannot be used directly anymore.
Without this change the app crashes with `Cannot read property
'getScrollableNode' of null`.
Related PR:
software-mansion/react-native-reanimated#6622
<!--
## Changes
Please describe things you've changed here, make a **high level**
overview, if change is simple you can omit this section.
For example:
- Updated `about.md` docs
-->
<!--
## Screenshots / GIFs
Here you can add screenshots / GIFs documenting your change.
You can add before / after section if you're changing some behavior.
### Before
### After
-->
<!--
## Test code and steps to reproduce
Please include code that can be used to test this change and short
description how this example should work.
This snippet should be as minimal as possible and ready to be pasted
into editor (don't exclude exports or remove "not important" parts of
reproduction example)
-->
## Checklist
- [x] Ensured that CI passes1 parent df26107 commit b74e0eb
1 file changed
+14
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
0 commit comments