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

Added Item Width Option to Animate Custom Width Cards #25

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

akshay2796
Copy link

@akshay2796 akshay2796 commented Jan 12, 2024

Hi Team,

I've added a new prop itemWidth which will take the CARD_WIDTH of the flatlist item and use that in the inputRange to animate the dots properly (by default the width of screen is used in inputRange).

This PR fixed the issue where the CARD_WIDTH is not related to width of screen and has custom value, then the full animation does not happen (since the inputRange is dependent on width of screen rather than the CARD_WIDTH) which is getting scrolled.

This PR fixes the issues described already in this repo.
Eg. #22

@akshay2796 akshay2796 changed the title Added Item Width Option to Animated Custom Cards Added Item Width Option to Animate Custom Width Cards Jan 12, 2024
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.

1 participant