Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Android): Change elements visibility on search bar open (software…
…-mansion#1903) ## Description Currently, when user opens the search bar all of the subviews on the toolbar are being pushed to the left. Instead, we want to hide them or even remove them so that they won't be visible during the layout. This PR fixes that problem by secretly hiding the toolbar elements, changing their visibility to `GONE`. Fixes software-mansion#1450. ## Changes - Added a fix that is being controlled by `handleOpen` and `handleClose` methods in SearchBarView. ## Screenshots / GIFs ### Before https://github.com/software-mansion/react-native-screens/assets/23281839/8ca8e18e-2cf6-4c04-85c8-51b5d69f1a61 ### After https://github.com/software-mansion/react-native-screens/assets/23281839/41330ea7-a12b-4e14-9a1e-2207a54ebed0 ## Test code and steps to reproduce In our example app open `SearchBar.tsx` and add `headerRight: () => <Button title="Test"/> to the `navigation.setOptions({` declaration. Then launch the app and open `Search bar` example. ## Checklist - [ ] Ensured that CI passes
- Loading branch information