Skip to content
Permalink
Browse files

bump

  • Loading branch information...
xcarpentier committed Jul 17, 2019
1 parent b2cb8f7 commit 152ab3ca761f8eb0694b9e9499c3f7b6e8130ab9
Showing with 9 additions and 7 deletions.
  1. +2 −0 App.js
  2. +1 −1 package.json
  3. +6 −6 src/GiftedChat.tsx
2 App.js
@@ -246,6 +246,8 @@ export default class App extends Component {
parsePatterns={this.parsePatterns}
user={user}
scrollToBottom
onLongPressAvatar={user => alert(JSON.stringify(user))}
onPressAvatar={() => alert('short press')}
onQuickReply={this.onQuickReply}
keyboardShouldPersistTaps='never'
renderAccessory={Platform.OS === 'web' ? null : this.renderAccessory}
@@ -1,6 +1,6 @@
{
"name": "react-native-gifted-chat",
"version": "0.10.0-beta.web.10",
"version": "0.10.0-beta.web.11",
"description": "The most complete chat UI for React Native",
"main": "node_modules/expo/AppEntry.js",
"types": "lib/index.d.ts",
@@ -398,10 +398,10 @@ class GiftedChat<TMessage extends IMessage = IMessage> extends React.Component<
}

componentDidUpdate(prevProps: GiftedChatProps<TMessage> = {}) {
if(this.props !== prevProps) {
const { messages, text } = this.props
this.setMessages(messages || [])
this.setTextFromProp(text)
if (this.props !== prevProps) {
const { messages, text } = this.props
this.setMessages(messages || [])
this.setTextFromProp(text)
}
}

@@ -655,7 +655,7 @@ class GiftedChat<TMessage extends IMessage = IMessage> extends React.Component<
this.props.onSend(newMessages)
}

setTimeout(() => this.scrollToBottom(false), 100)
setTimeout(() => this.scrollToBottom(false), 200)

if (shouldResetInputToolbar === true) {
setTimeout(() => {
@@ -670,7 +670,7 @@ class GiftedChat<TMessage extends IMessage = IMessage> extends React.Component<
if (this.props.onQuickReply) {
this.props.onQuickReply(replies)
}
setTimeout(() => this.scrollToBottom(false), 100)
setTimeout(() => this.scrollToBottom(false), 200)
}

resetInputToolbar() {

0 comments on commit 152ab3c

Please sign in to comment.
You can’t perform that action at this time.