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

On Hover Change or On Placeholder Change Event #30

Closed
strawhat19 opened this issue Jan 26, 2025 · 3 comments
Closed

On Hover Change or On Placeholder Change Event #30

strawhat19 opened this issue Jan 26, 2025 · 3 comments
Assignees

Comments

@strawhat19
Copy link

Description

Hello, first I want to say thank you for this package, it saved me when normal react native draggable flatlist was having weird jumps on drop!

One request I have is would it be possible to have an event fire on index change or when an item is hovered over while dragging, so i could give haptic feedback like Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy) on that?

This would be similar to onPlaceholderIndexChange on react native draggable flat list or onHoverChanged on drag list

Once again, thank you!

Possible implementation

No response

@omahili
Copy link
Owner

omahili commented Jan 26, 2025

Hi @strawhat19, yes this is actually a useful feature. Will schedule it for one of the next releases!

@omahili omahili self-assigned this Jan 26, 2025
@omahili
Copy link
Owner

omahili commented Jan 27, 2025

@strawhat19 onIndexChange event is available in v0.11.0! Check this example to see how to use it.

@omahili omahili closed this as completed Jan 27, 2025
@strawhat19
Copy link
Author

@omahili thank you, I got it working, you are a lifesaver!

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

No branches or pull requests

2 participants