Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 passes
- Loading branch information