-
Notifications
You must be signed in to change notification settings - Fork 77
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
CardView on Android doesn't support flexbox layout #3
Comments
Strangely, wrapping the children in a normal RN
|
@aranda-adapptor Thanks for issue. I will look into this and fix by end of the day. |
@aranda-adapptor I am closing this issue. Please latest version now. |
Thanks for the quick fix! |
I'm still having layout problems on Android, the child views are not centered properly using alignItems: "center". Works as it should on iOS. |
@Sundin if u dont send cardElevation value nor send '0',it works? |
@Sundin i have same issues,did u solve it? |
@est7 Unfortunately I didn't find a workaround. I used a normal View component with a borderRadius instead (and thus had to sacrifice the shadow/elevation effect). I didn't try cardElevation: 0 but it should have the same effect if it works like you said. |
Elevation 0 fixes the issue, but of course removes the shadow. Any updates on this issue? |
Is 'height' props must required? I think it would be better like View, which 'height' is adaptive according to the height of its sub-layouts |
Am I right in thinking this?
I'm trying this and all the text elements appear on top of each other on Android, but on iOS it works as expected:
Having a shadow is nice, but If I can't layout my card contents in the same way on Android and iOS, the component is not very useful.
The text was updated successfully, but these errors were encountered: