Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Android): title invisible with searchbar enabled (#2456)
## Description This PR fixes title being invisible when searchbar is enabled. In #2395 I added `alignItems: 'center'` style to the header config component. It aimed to fix iOS subviews floating mid-screen when a larger subview is provided: | (iOS) without `alignItems: 'center'` | (iOS) with `alignItems: 'center'`| | --- | --- | | ![Simulator Screenshot - iPhone 16 Pro - 2024-10-28 at 09 36 53](https://github.com/user-attachments/assets/3066b95a-4904-41e7-b8d5-b56c985cd751) | ![Simulator Screenshot - iPhone 16 Pro - 2024-10-28 at 09 37 07](https://github.com/user-attachments/assets/673bd550-9a8b-4200-acfc-c80f1ebea0a3) | This change unintentionally introduced a regression on Android. When searchabar is enabled, the `ScreenStackHeaderConfig` components height is equal 0 and it does not 'stretch' to accomodate the native title. Simple solution is to center align the subviews depending on the Platform. | (Android) with `alignItems: 'center'` | (Android) without `alignItems: 'center'` | | --- | --- | | ![Screenshot_1730106776](https://github.com/user-attachments/assets/e1a8f358-3560-413d-b8ea-0426cfeaefc2) | ![Screenshot_1730106784](https://github.com/user-attachments/assets/b746bc5c-4c7f-4277-a5ec-fa291d5390d4) | ## Changes - updated `Test2395.tsx` repro - center aligning items conditionally based on Platform ## Test code and steps to reproduce - use `Test2395.tsx` repro ## Checklist - [x] Included code example that can be used to test this change - [x] Ensured that CI passes
- Loading branch information