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

Styling for Container & Column, and verticalSeparatorWith support #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adrianhurt
Copy link

I've added the props wrapperStyle and columnWrapperStyle, as FlatList does with columnWrapperStyle. In fact, in this case, columnWrapperStyle can be an object or a function (columnWrapperStyle(columnIndex)). It lets you have different styling for each column. For example you could have a alignItems attribute with flex-end for the first column and flex-start for the second to center elements.

I've also added a simple verticalSeparatorWidth support. Because it's very common a container with some padding and a fixed separator between each column.

Thanks for this library!!

Added support for styling the wrapper container and columns with wrapperStyle and columnWrapperStyle props.
Also added support for verticalSeparatorWidth.
@adrianhurt
Copy link
Author

Travis fails due to the style doesn't match with the snapshot… 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant