diff --git a/package.json b/package.json index 94a72c1ef..97d629caf 100644 --- a/package.json +++ b/package.json @@ -111,4 +111,4 @@ "pre-commit": "yarn lint:fix && yarn prettier && yarn tsc" } } -} +} \ No newline at end of file diff --git a/src/GiftedChat.tsx b/src/GiftedChat.tsx index f23bebf95..d2da561c3 100644 --- a/src/GiftedChat.tsx +++ b/src/GiftedChat.tsx @@ -172,8 +172,6 @@ export interface GiftedChatProps { onPress?(context: any, message: TMessage): void /* Callback when a message bubble is long-pressed; default is to show an ActionSheet with "Copy Text" (see example using showActionSheetWithOptions()) */ onLongPress?(context: any, message: TMessage): void - //function to get the layout of the first rendering - onInitialLayoutView?(event: LayoutChangeEvent): void /*Custom Username container */ renderUsername?(user: User): React.ReactNode /* Reverses display order of messages; default is true */ @@ -574,7 +572,6 @@ function GiftedChat( if (layout.height <= 0) { return } - props.onInitialLayoutView?.(e) notifyInputTextReset() maxHeightRef.current = layout.height @@ -601,7 +598,6 @@ function GiftedChat( isFirstLayoutRef.current === true ) { maxHeightRef.current = layout.height - props.onInitialLayoutView?.(e) setState({ ...state, messagesContainerHeight: @@ -740,7 +736,6 @@ GiftedChat.propTypes = { renderBubble: PropTypes.func, renderSystemMessage: PropTypes.func, onLongPress: PropTypes.func, - onInitialLayoutView: PropTypes.func, renderMessage: PropTypes.func, renderMessageText: PropTypes.func, renderMessageImage: PropTypes.func,