Skip to content

Releases: yeonhub/react-native-top-sheet

Release 1.5.0

Choose a tag to compare

@yeonhub yeonhub released this 16 Mar 02:39
dd52a8f
  • 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

Choose a tag to compare

@yeonhub yeonhub released this 04 Feb 06:59
e7263ad

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

Choose a tag to compare

@yeonhub yeonhub released this 03 Feb 05:17
bb56b9f

Renamed the CollapsedTopSheetContent and ExpandedTopSheetContent props to CollapsedContent and ExpandedContent for consistency.

Additionally, the following changes were made:

  • Validation of damping and stiffness values:
    The clampValue function was updated to ensure that the damping and stiffness values 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

Choose a tag to compare

@yeonhub yeonhub released this 20 Jan 04:55
83e04f1

version update 1.2.0

Change

update peerDependencies to require Expo SDK 52 or higher

Release 1.2.0

Choose a tag to compare

@yeonhub yeonhub released this 18 Jan 08:08
7615a4c

version update 1.2.0

Change

  • fix type error
  • fix lint error

Release 1.1.1

Choose a tag to compare

@yeonhub yeonhub released this 17 Jan 07:57
a3b8408

Release 1.1.1 version