-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
FormInput with alignItems: 'center' #70
Comments
Don't think this is possible. If you figure it out, feel free to submit a pr, thanks for the input. |
@dabit3 Envountered exactly same issue. If I'm placing FromInput inside view with alignItems 'center', input is not rendered/visible. If I remove alignItems, it works fine. Blank screen in this case:
And I see input in this case:
@Cretezy Have you solved this? |
@vladra any ideas on what might be causing it/possible fixes? |
@Monte9 Just encountered this. It's not working on blank new react-native project |
Reopening this issue since that's the case @vladra. |
@vladra @Monte9 I was trying to fix this and i think the problem when doing alignItems of center or even flex-start or flex-end is that the component is present but it has a width of 0. If you set a containerStyle or inputStyle with a width of not 0 then it does show up. I think the solution is to set the default width to be the device width. Thoughts? |
I think that's a decent solution. In the case that we add a default height, the user can always use the containerStyle to override the height if need be. |
When using a FormInput and flexbox with alignItems: 'center', the input does not render at all, even with width/height set. How would you go to about centering inputs?
The text was updated successfully, but these errors were encountered: