Skip to content

Instantly share code, notes, and snippets.

@IslamRustamov
Created June 10, 2023 19:20
Show Gist options
  • Save IslamRustamov/a75b7c521bfe7a08072ed325e0a4f5cf to your computer and use it in GitHub Desktop.
Save IslamRustamov/a75b7c521bfe7a08072ed325e0a4f5cf to your computer and use it in GitHub Desktop.
setCenteredIndex(Math.round(e.nativeEvent.contentOffset.y / blockSize));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment