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

gap is not working on avatarListContainerStyle and seeking help in more customization #134

Open
umangloria opened this issue Dec 5, 2024 · 1 comment

Comments

@umangloria
Copy link

I tried to set gap:10 on avatarListContainerStyle but it is not working. basically I am trying to put some space between avatars.
I am getting error from Flashlist saying only padding related and bg color related styles supported in contentContainerStyle.

Simulator Screenshot - iPhone 16 Pro Max - 2024-12-05 at 11 00 47

Also, We are trying to have own UI for the stories.

@michaelsribeiro
Copy link

Here works with gap:

<InstagramStories
ref={ref}
stories={stories}
showName={true}
avatarListContainerStyle={{ gap: 15, paddingHorizontal: 10 }}
nameTextStyle={{color: '#fff', textTransform: 'lowercase', marginTop: 5, textAlign: 'center'}}
nameTextProps={{numberOfLines: 1}}
/>

image

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

No branches or pull requests

2 participants