Repository navigation
Releases: yeonhub/react-native-top-sheet
Releases · yeonhub/react-native-top-sheet
Release list
Release 1.5.0
- Add onExpand callback that triggers when sheet is fully expanded
- Add onCollapse callback that triggers when sheet is fully collapsed
- Add onChange callback that provides current expansion state
- Update documentation with new callback properties
| Property | Default Value | Type | Description |
|---|---|---|---|
onExpand |
undefined |
function |
A callback function that is triggered when the sheet is fully expanded (at bottom position). Useful for triggering actions when the sheet expands. |
onCollapse |
undefined |
function |
A callback function that is triggered when the sheet is fully collapsed (at top position). Useful for triggering actions when the sheet collapses. |
onChange |
undefined |
function |
A callback function that receives the current expansion state (isExpanded) as a parameter. This is called whenever the sheet transitions between expanded and collapsed states. |
Release 1.4.0
Removed unnecessary GestureHandlerRootView wrapper
Added missing React import for proper JSX usage
Updated CLI and Expo installation steps in documentation
Added ScrollView usage instructions for Expo users
Release 1.3.0
Renamed the CollapsedTopSheetContent and ExpandedTopSheetContent props to CollapsedContent and ExpandedContent for consistency.
Additionally, the following changes were made:
- Validation of
dampingandstiffnessvalues:
TheclampValuefunction was updated to ensure that thedampingandstiffnessvalues are within their defined ranges. - Deprecated prop warning:
A warning was added for users who are still using the old props (CollapsedTopSheetContent,ExpandedTopSheetContent).
| Prop Name | Old Prop | New Prop | Range (if applicable) |
|---|---|---|---|
CollapsedTopSheetContent |
CollapsedTopSheetContent |
CollapsedContent |
- |
ExpandedTopSheetContent |
ExpandedTopSheetContent |
ExpandedContent |
- |
damping |
- | - | 1 to 100 |
stiffness |
- | - | 1 to 500 |
This change is backward compatible, but users are encouraged to update their code to use the new props.
Release 1.2.1
version update 1.2.0
Change
update peerDependencies to require Expo SDK 52 or higher
Release 1.2.0
version update 1.2.0
Change
- fix type error
- fix lint error