apps/docs/content/docs/en/native/releases/beta-10.mdx
This release introduces the new Bottom Sheet component, refactors PressableFeedback with improved API, extends the Animation API with State Prop support, enhances the use-theme-color hook to handle multiple colors selection, and includes various bug fixes and documentation improvements.
Update to the latest version:
<Tabs items={["npm", "pnpm", "yarn", "bun"]}>
<Tab value="npm">
bash npm i heroui-native@beta
</Tab>
<Tab value="pnpm">
bash pnpm add heroui-native@beta
</Tab>
<Tab value="yarn">
bash yarn add heroui-native@beta
</Tab>
<Tab value="bun">
bash bun add heroui-native@beta
</Tab>
</Tabs>
This release introduces the Bottom Sheet component, a versatile overlay component that slides up from the bottom of the screen with animated transitions and swipe-to-dismiss gestures.
<NativeVideoPlayerView target="component" slug="bottom-sheet" srcLight="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/native/components/videos/bottom-sheet-docs-light.mp4" srcDark="https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/native/components/videos/bottom-sheet-docs-dark.mp4" />
Features:
Usage:
import { BottomSheet, Button } from 'heroui-native';
<BottomSheet>
<BottomSheet.Trigger asChild>
<Button>Open Bottom Sheet</Button>
</BottomSheet.Trigger>
<BottomSheet.Portal>
<BottomSheet.Overlay />
<BottomSheet.Content>
<BottomSheet.Close />
<BottomSheet.Title>Title</BottomSheet.Title>
<BottomSheet.Description>Description</BottomSheet.Description>
</BottomSheet.Content>
</BottomSheet.Portal>
</BottomSheet>
For complete documentation and examples, see the Bottom Sheet component page.
Related PR: #174
The PressableFeedback component has been refactored with an improved API and better animation control.
Improvements:
The component maintains backward compatibility while providing more control over press feedback animations.
Related PR: #182
The Animation API has been extended with a new state prop that allows you to disable animations while customizing properties. This provides more granular control over animation behavior.
New Capability:
<Component
animation={{
state: 'disabled', // or 'disable-all' or boolean
// ... other animation properties
}}
/>
The state prop can be:
'disabled': Disable animations while still allowing property customization'disable-all': Disable all animations including childrenboolean: Simple enable/disable controlThis enhancement makes it easier to customize animation properties without enabling animations, useful for fine-tuning component behavior.
Related PR: #176
The use-theme-color hook has been refactored to handle multiple colors selection, making it more flexible and powerful for theme customization.
Enhancement:
This improvement makes it easier to work with complex theming scenarios where multiple colors need to be selected and applied together.
Related PR: #170
Added comprehensive comments and documentation to the Animated Styles Guide, making it easier for developers to understand and use animation features effectively.
Improvements:
Related PR: #179
This release includes fixes for the following issues:
classNames={{container:"bg-x"}} was not working for styling the backgroundColor of TextField.Input containerThe following documentation pages have been updated to reflect the changes in this release:
Thanks to everyone who contributed to this release!