Swipeable
Overview
The Swipeable
component in the LikeMinds Chat React Native integration provides swipe gesture functionality for items in a list or collection. It enables users to perform actions like deleting, replying, or reacting to messages by swiping left or right on an item. The component manages the swipe gestures, renders any actions tied to the swipe, and ensures a smooth and responsive user interaction, enhancing the overall chat experience by allowing quick access to these options.
Props
Property | Type | Description | Default | Required |
---|---|---|---|---|
onFocusKeyboard | Function | Triggered when the keyboard gains focus. | ||
item | Conversation | Represents the conversation data. | ✔️ | |
isStateIncluded | boolean | Indicates if the state is included. | ✔️ | |
children | React.ReactNode | The child elements to be rendered inside. |