Skip to content

Commit fd69981

Browse files
author
Dan Carbonell
committed
adjust prop types
1 parent 2e15334 commit fd69981

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/components/Message/Message.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,6 @@ const DefaultMessage = (props) => {
243243
};
244244

245245
DefaultMessage.propTypes = {
246-
/**
247-
* Custom UI component for the action sheet that appears on long press of a Message.
248-
* Defaults to: https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/Message/MessageSimple/MessageActionSheet.js
249-
*
250-
* Wrap your action sheet component in `React.forwardRef` to gain access to the `actionSheetRef` set in MessageContent.
251-
*/
252-
ActionSheet: PropTypes.oneOfType([PropTypes.node, PropTypes.elementType]),
253246
/**
254247
* Style object for action sheet (used to message actions).
255248
* Supported styles: https://github.com/beefe/react-native-actionsheet/blob/master/lib/styles.js

src/components/Message/MessageSimple/MessageContent.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,9 @@ const MessageContentWithContext = React.memo((props) => {
378378

379379
MessageContentWithContext.displayName = 'message.contentWithContext';
380380

381+
/**
382+
* Child of MessageSimple that displays a message's content.
383+
*/
381384
const MessageContent = (props) => {
382385
const { disabled } = useContext(ChannelContext);
383386
const {

0 commit comments

Comments
 (0)