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

fix onChangeIndex iOS #183

Merged
merged 2 commits into from
Apr 23, 2024
Merged

fix onChangeIndex iOS #183

merged 2 commits into from
Apr 23, 2024

Conversation

phuocantd
Copy link
Contributor

No description provided.

Copy link

what-the-diff bot commented Feb 28, 2024

PR Summary

  • Introduction of useRef in SwiperFlatList.tsx
    This enhancement incorporates the useRef hook into SwiperFlatList.tsx, an important file in our project. By utilizing this reference hook, we can access and manage specific properties more efficiently, ultimately improving the responsiveness of the application.

  • Configuring viewabilityConfigCallbackPairs and onViewableItemsChanged
    We have set up the aforementioned variables in the useRef hook, which allows the application to track which items are viewable on the screen at any moment. Useful for analytics and optimization, this allows us to better understand user behavior and make data-informed decisions.

  • Conditional Setting of flatListProps Based on Device Platform
    We have modified the flatListProps to change the value of viewabilityConfigCallbackPairs and onViewableItemsChanged depending on the user's device platform. It means the application will now function more optimally on different devices offering a much more robust user experience by tailoring its behavior based on the platform.

@phuocantd
Copy link
Contributor Author

#110

@BLOCKMATERIAL
Copy link

upd

@gusgard gusgard merged commit 9b26891 into gusgard:master Apr 23, 2024
1 check failed
@gusgard
Copy link
Owner

gusgard commented Apr 23, 2024

Looks good, merged, thanks for the fix 😄

@gusgard
Copy link
Owner

gusgard commented Apr 23, 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.

None yet

3 participants