Releases: software-mansion-labs/react-native-bottom-sheet
Releases · software-mansion-labs/react-native-bottom-sheet
v0.16.0-next.2
v0.16.0-next.1
- Improved behavior when detents are updated midway through an active drag. Position clamping and snap-index selection are based on a snapshot taken at drag start.
v0.15.3
v0.15.2
v0.15.1
- Fixed Android compatibility with React Native versions below 0.85.
- Fixed Android gesture-takeover handling with ancestor gesture systems like React Native Gesture Handler’s
GestureHandlerRootView. This prevents them from incorrectly recognizing gestures after a sheet takes over the touch stream.
v0.15.0
- Added
nativeOverlayforModalBottomSheet(#16). When this is true, the sheet is presented in a native full-window overlay, letting it stack with native modal screens. - Enabled fixed detents to exceed the content height, unlocking configurations like
[0, 'content', 600](#21). - Added
extendUnderStatusBar, allowing sheets to extend under the status bar (#20). - Added
animateContentHeight. Use this to opt out of the content-height animation when the content already animates its own height (e.g., viauseReanimatedKeyboardAnimationfrom React Native Keyboard Controller). - Added
event.nativeEvent.indextoonPositionChange(by @arekkubaczkowski). This represents the fractional detent index. - Fixed unexpected snap overshoot on Android.
- Addressed
onPositionChangeupdates drifting out of sync during settle. - Prevented disabled scrollables from blocking drag when
disableScrollableNegotiationis true (#19). - To prevent ambiguity, enforced specifying detents in ascending order by height.
- Moved modal-sheet-specific props from
BottomSheetPropstoModalBottomSheetProps.
v0.14.1
v0.14.0
- Changed
onPositionChangefrom a numeric JS callback to a native direct event. Handlers now receiveNativeSyntheticEvent<{ position: number }>; read the value fromevent.nativeEvent.positioninstead of the previousposition. - Added
wrapNativeViewto let consumers wrap the native sheet view that emitsonPositionChange. PassAnimated.createAnimatedComponentand provide a Reanimated worklet handler (e.g., fromuseEvent) to handle position updates on the UI thread.
v0.13.0
- Made
onIndexChangefire as soon as a snap starts rather than once it settles.
v0.12.0
- Added
scrimOpacitiesfor per-detent scrim-opacity control (#4). Learn more in the README.