react-native-jigsaw icon indicating copy to clipboard operation
react-native-jigsaw copied to clipboard

Adjust onSettle index of BottomSheet

Open sieu-db opened this issue 1 year ago • 2 comments
trafficstars

Overview

  • The callback index returned already mapped to provided point, we don't need to manual map it

Demo

https://github.com/user-attachments/assets/66d8812f-4fa6-466b-bd6d-a28bc1880e4b


:rocket: This description was created by Ellipsis for commit f115228d49c1a0ec0fa82697f70993b4842be4f4

Summary:

Updated BottomSheet component to use the index directly in onChange and added logging in BottomSheetExample.

Key points:

  • Updated onChange in packages/core/src/components/BottomSheet/BottomSheet.tsx to use the index directly.
  • Removed manual mapping of index in onChange.
  • Added onSettle callback in example/src/BottomSheetExample.tsx to log the new index.

Generated with :heart: by ellipsis.dev

sieu-db avatar Aug 28 '24 11:08 sieu-db

Published version: @draftbit/[email protected]

github-actions[bot] avatar Aug 28 '24 11:08 github-actions[bot]

Published version: @draftbit/[email protected]

github-actions[bot] avatar Nov 04 '24 06:11 github-actions[bot]

Published version: @draftbit/[email protected]

github-actions[bot] avatar Nov 04 '24 09:11 github-actions[bot]

Published version: @draftbit/[email protected]

github-actions[bot] avatar Nov 04 '24 09:11 github-actions[bot]