diff --git a/CHANGELOG.md b/CHANGELOG.md index 5295a534..632ca306 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### 🐛 Bug fixes + +- **iOS**: `onPositionChange` no longer emits a slightly fractional `index` during the present transition — the detent offset is now learned before positions are emitted, so the index lands exactly on the target detent instead of snapping after `didPresent`. ([#731](https://github.com/lodev09/react-native-true-sheet/pull/731) by [@lodev09](https://github.com/lodev09)) + ## 3.11.5 ### 🎉 New features diff --git a/example/bare/ios/Podfile.lock b/example/bare/ios/Podfile.lock index 01a75f4e..e51db5fd 100644 --- a/example/bare/ios/Podfile.lock +++ b/example/bare/ios/Podfile.lock @@ -2049,7 +2049,7 @@ PODS: - ReactCommon/turbomodule/core - ReactNativeDependencies - Yoga - - RNTrueSheet (3.11.4): + - RNTrueSheet (3.11.5): - hermes-engine - RCTRequired - RCTTypeSafety @@ -2481,7 +2481,7 @@ SPEC CHECKSUMS: RNGestureHandler: 2ff61eac036eaf89f6818bf4ed9c39771a17d134 RNReanimated: f735b1747a7a93bda7ca102c6d37a3cf54b6d5e8 RNScreens: 991cc417cd396602a6cf59a42139e5a9d91462a9 - RNTrueSheet: 4dcd3292bcfe21502d48e0fd26b4fb3f68da0ad9 + RNTrueSheet: 4dfa8b05506db77a67c8a2a54bc563338450408c RNWorklets: 4931990f73bc8f347586918b2e13f11dfadf3b75 Yoga: 77dfa8673de2874e1855002ae59c68b8be9b007b diff --git a/example/shared/src/components/sheets/BasicSheet.tsx b/example/shared/src/components/sheets/BasicSheet.tsx index e6c16734..ca84e5aa 100644 --- a/example/shared/src/components/sheets/BasicSheet.tsx +++ b/example/shared/src/components/sheets/BasicSheet.tsx @@ -123,9 +123,9 @@ export const BasicSheet = forwardRef((props: BasicSheetProps, ref: Ref {contentCount > 0 &&