-
Notifications
You must be signed in to change notification settings - Fork 131
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
Search box keeps shifting infinity to right when inside a view with the following styles #45
Comments
I am also facing same issue. |
@aelallam have you found any solution? |
I didn't really come back to this, however, are you placing this view inside a parent view? The problem is due to the styling of the parent view. However if this is the only view you have (the one in my question) then it works okay. |
@aelallam Yes I have added into another view. I think I need to look for another library. |
@aelallam @sujitpk-perennial. I was having the same issue today. My workaround was to set a width for the searchBar's container, which the package did not expose. However, you could fork the repo and modify it yourself. Or you could use my fork, which exposes a prop
|
Digging in the code, the logic behind |
@lacombar Can you send a PR? |
I will fix within today Mr. Sir |
This is my view:
with the following styles:
What I want is for a text label to be next to the search box. However, the search box keeps shifting infinity to the right of the screen (at one point the place holder also disappears to the right). I am thinking it has something to do with
flexDirection: row
. However I do not understand this behavior. What is going wrong?Also, how to I alight the placeholder (by default its aligning to the right for me?)
Thank you
The text was updated successfully, but these errors were encountered: