react-native-gifted-messenger
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -250,9 +250,13 @@ 'use strict'; | ||
scrollToBottom() { | ||
var scrollDistance = this.listHeight - this.footerY; | ||
this.scrollResponder.scrollTo(-scrollDistance); | ||
if (this.listHeight && this.footerY && this.footerY > this.listHeight) { | ||
var scrollDistance = this.listHeight - this.footerY; | ||
this.scrollResponder.scrollTo(-scrollDistance); | ||
} | ||
}, | ||
scrollWithoutAnimationToBottom() { | ||
var scrollDistance = this.listHeight - this.footerY; | ||
this.scrollResponder.scrollWithoutAnimationTo(-scrollDistance); | ||
if (this.listHeight && this.footerY && this.footerY > this.listHeight) { | ||
var scrollDistance = this.listHeight - this.footerY; | ||
this.scrollResponder.scrollWithoutAnimationTo(-scrollDistance); | ||
} | ||
}, | ||
@@ -362,5 +366,3 @@ | ||
// inspired by http://stackoverflow.com/a/34838513/1385109 | ||
if(this.listHeight && this.footerY && this.footerY > this.listHeight) { | ||
this.scrollToBottom(); | ||
} | ||
this.scrollToBottom(); | ||
}, 100); | ||
@@ -367,0 +369,0 @@ } |
{ | ||
"name": "react-native-gifted-messenger", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "The chat of your next React-Native Apps", | ||
@@ -5,0 +5,0 @@ "main": "GiftedMessenger.js", |
# Gifted Messenger | ||
Ready-to-use chat interface for iOS and Android React-Native apps | ||
Dependency: React-Native >= v0.18.0-rc (onLayout prop on ListView is required) | ||
![](https://raw.githubusercontent.com/FaridSafi/react-native-gifted-messenger/master/screenshots/messenger-1.png) | ||
@@ -5,0 +8,0 @@ ![](https://raw.githubusercontent.com/FaridSafi/react-native-gifted-messenger/master/screenshots/messenger-2.png) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32470
779
155