Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-gifted-chat

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-gifted-chat - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

14

package.json
{
"name": "react-native-gifted-chat",
"version": "0.0.2",
"version": "0.0.3",
"description": "The most complete chat UI for React Native",

@@ -33,10 +33,10 @@ "main": "index.js",

"devDependencies": {
"babel-jest": "^14.0.2",
"babel-jest": "^14.1.0",
"babel-preset-react-native": "^1.9.0",
"eslint": "^3.1.0",
"eslint-plugin-react": "^5.2.2",
"eslint": "^3.2.2",
"eslint-plugin-react": "^6.0.0",
"eslint-plugin-react-native": "^1.1.0",
"jest": "^14.0.1",
"jest-cli": "^14.0.1",
"jest-react-native": "^14.0.0"
"jest": "^14.1.0",
"jest-cli": "^14.1.0",
"jest-react-native": "^14.1.1"
},

@@ -43,0 +43,0 @@ "dependencies": {

@@ -108,2 +108,3 @@ # Gifted Chat

- **`renderTime`** _(Function)_ - render the message time
- **`renderFooter`** _(Function)_ - renders a fixed bottom view. Can be used for 'is typing message', see [example/App.js](example/App.js)
- **`renderInputToolbar`** _(Function)_ - render the composer container

@@ -127,3 +128,3 @@ - **`renderActions`** _(Function)_ - renders an action button on the left of the message composer

## LICENSE
## License
- [MIT](LICENSE)

@@ -130,0 +131,0 @@

@@ -36,3 +36,3 @@ import React, { Component, PropTypes } from 'react';

if (this.props.renderMessageText) {
this.props.renderMessageText(this.props);
return this.props.renderMessageText(this.props);
}

@@ -47,3 +47,3 @@ return <MessageText {...this.props}/>;

if (this.props.renderMessageImage) {
this.props.renderMessageImage(this.props);
return this.props.renderMessageImage(this.props);
}

@@ -50,0 +50,0 @@ return <MessageImage {...this.props}/>;

@@ -288,2 +288,3 @@ import React, { Component, PropTypes } from 'react';

/>
{this.renderFooter()}
</AnimatedView>

@@ -373,2 +374,12 @@ );

renderFooter() {
if (this.props.renderFooter) {
const footerProps = {
...this.props,
};
return this.props.renderFooter(footerProps);
}
return null;
}
renderLoading() {

@@ -439,2 +450,3 @@ if (this.props.renderLoading) {

renderBubble: null,
renderFooter: null,
renderMessageText: null,

@@ -441,0 +453,0 @@ renderMessageImage: null,

@@ -14,3 +14,3 @@ import React, { Component, PropTypes } from 'react';

shouldComponentUpdate(nextProps, nextState) {
if (this.props.messagesHash === nextProps.messagesHash) {
if (this.props.messagesHash === nextProps.messagesHash && this.props.loadEarlier === nextProps.loadEarlier) {
return false;

@@ -17,0 +17,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc