Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Long text in <Searcbar/> wraps on a new line and breaks layout #4489

Open
fabriziocucci opened this issue Aug 26, 2024 · 1 comment
Open
Labels

Comments

@fabriziocucci
Copy link
Contributor

fabriziocucci commented Aug 26, 2024

Current behaviour

Long text in a <Searchbar/> wraps on a new line and breaks the vertical alignment (see text wrt the icons).

Expected behaviour

Ideally, the long text in the <Searchbar/> should stay on the same line and show ellipses by default. Optionally, there could be an easy way to change the behaviour.

How to reproduce?

See expo snack.

Preview

See <Searchbar/> current behaviour on the top and plain <TextInput/> from react-native on the bottom.

What have you tried so far?

Tried to use the inputStyle prop of the <Searchbar/> component without too much success.

Your Environment

software version
ios x
android x
react-native 0.74.5
react-native-paper 5.12.5
node x.x.x
npm or yarn x.x.x
expo sdk x.x.x
@fabriziocucci fabriziocucci changed the title [iOS] Long text in Searcbar/> wraps on a new line and breaks layout [iOS] Long text in <Searcbar/> wraps on a new line and breaks layout Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@fabriziocucci and others