Commit Graph

235 Commits

Author SHA1 Message Date
Xavier Carpentier
6fcb478d72 fix MessageContainer-Pure 2019-01-24 13:29:53 +01:00
Egidio Caprino
5d088ae263 feat: can disable send button (#1042) 2019-01-18 10:55:17 +01:00
Faolain
553224d0fc Feature(MessageContainer): Add ability to render scrollToBottom after scrolling a provided height (#1064)
* feat: add ability to render scrollToBottom after scrolling a provided (includes built-in default of 200) height up

* Update Color Test snapshot, added black

* add onScroll and scrollEventThrottle to FlatList

* Added Documentation to README on how to use scrollToBottom additions

* fix lint
2019-01-16 15:53:01 +01:00
Xavier Carpentier
502bae7c64 Improve perf (#1076)
* feat component perf with scu

* fix type on readme

* perf remove purecomponent
2019-01-12 00:16:08 +01:00
nandiniparimi1107
f872d670bc Min composer height is not respecting props in some instances. Fixing this issue (#1078) 2019-01-11 09:31:43 +01:00
Alvin Crespo
9933e436b9 Fixes failed prop type warning for resizeMode (#1072) 2019-01-08 17:15:30 +01:00
nandiniparimi1107
b7de25ff4c Adding minComposerHeight and maxComposerHeight props. (#1069)
* Adding minComposerHeight and maxComposerHeight props.

* as per review comments

* As per review comments.
2019-01-07 18:21:46 +01:00
nandiniparimi1107
0cd69b25b5 Flat-list re-render on demand. (#1060)
* Fixing issue with flatlist as its not re-rendering on renderFooter update

* code cleanup

* code cleanup

* code cleanup

* extraData for re-rendering the flat list.

* Adding extraData to proptypes

* fixing lint errors

* fixing lint errors

* fixing lint errors
2019-01-01 23:36:35 +01:00
nandiniparimi1107
4fb2082b24 Fixing issue with flatlist as its not re-rendering on update (#1058)
* Fixing issue with flatlist as its not re-rendering on renderFooter update

* code cleanup

* code cleanup
2018-12-31 22:17:05 +01:00
Xavier Carpentier
8829f44bb2 fix eslint 2018-12-31 10:47:02 +01:00
Xavier Carpentier
32e36cfccf Key extractor as member 2018-12-26 15:22:17 +01:00
Martin Arista
4349c56d6b Justify Bottom Container (#1046)
* justify content based off position

* update tests
2018-12-26 15:00:50 +01:00
Lucas Monteiro
e0fb6670ad pending tick (#1024)
* pending tick

* disable lint for accessible-emoji
2018-12-04 13:37:21 -02:00
Maher Zaidoune
ae53c05560 add send video support (#1010)
* add send video message support using react-native-video

* update README

* Update MessageVideo.js

disabling eslint no-use-before-define for styles variable
2018-12-03 14:19:39 -02:00
arilton
6377796328 Show the username on the message (#929)
* Username on a messages footer

* Add the bool prop to render username on message

* Update based at pull request test #375

* Update to match with the eslint
2018-12-03 16:15:06 +01:00
Tomas Alabes
f1ba7d87d1 Error in FlatList with latest react-native version
`keyExtractor` in `FlatList` must now return a string: https://facebook.github.io/react-native/docs/flatlist#keyextractor
2018-11-21 23:06:35 -08:00
Gianfrancø Palumbo
96f8cf8a7a Add prop to customise to Text style of timestamps (#942)
* Add prop to customise to Text style of rendering times

* fix(Time) linting and test snapshot issues
2018-09-06 17:33:58 +02:00
doomsower
052094d4dd Fix MessageContainer keyboard avoiding when messages array is empty (#898)
* Fix MessageContainer keyboard avoiding when messages array is empty

* Make linter happy
2018-07-22 16:26:51 +02:00
Larry-Liu2016
1186b02deb Update InputToolbar.js (#906) 2018-07-09 11:14:29 +02:00
Gleb Kost
1fedba2203 fix: enable renderFooter for FlatList MessageContainer (#914) 2018-06-29 14:44:39 +02:00
Helielson
36082ff059 Move listViewProps to the end (#882)
It allows to override props like `style` as suggested on #795
2018-06-16 22:47:19 +02:00
Adrian Carolli
7f371855cc Remove prop removeClippedSubviews on Flatlist (#897)
- Fixes videos disappearing on Android
2018-06-12 11:38:19 +02:00
Xavier Carpentier
c143b5f0fe Modified for flatlist (from #629) (#705)
Modified for FlatList
2018-05-30 16:37:00 +02:00
Bruno Cascio
c0add098ec (hotfix) Use indexOf instead of latest item for cancel action. Refactorized action press callback 2018-04-06 10:35:43 -03:00
Aaron Lee
ecc5ca98e1 Fixed Day headers when inverted prop is false (#810)
* Fix date headers when invert false

* Add nextMessage, inverted inherited PropTypes for Day

* Day inverted default prop should be inherited from parent
2018-03-27 16:26:34 +02:00
Aaron Lee
a830d65cb6 Add prop to always show send button (#717)
* Add prop to always show send button

* Clarify alwaysShowSend usage
2018-03-26 21:08:07 +02:00
Hristo Hristov
6c5eb2ed8e fixing issue #797 (#798) 2018-03-17 16:26:06 +01:00
Bruno Cascio
b9db8f8638 Hotfix bad this context when calling actions 2018-03-15 13:13:47 -03:00
Joel Arvidsson
4dea9ba580 Remove redundant ref causing crash in React 16.1 (#643) 2018-03-12 18:23:10 +01:00
Martin Adamko
c4e3863a9e Replace hardcoded width set to full screen width (#776)
* Replace hardcoded width set to full screen width

* Update to pass tests
2018-03-07 12:15:32 +01:00
Xavier Carpentier
661cebe85d fix(lint&test): regenerate snapshot 2018-02-16 15:38:08 +01:00
Tomás Flores Alvear
feecf697d0 prop for keyboard style (#754) 2018-02-16 13:54:56 +01:00
Aaron Lee
0dc14c209f Add Prop to always show avatars for each message (#729)
* Prop to always show avatars

* Clarify README for showAvatarForEveryMessage
2018-02-14 10:45:17 +01:00
Jay Prado
e2d6c4f650 Fix initials not changing on user.name prop change (#746) 2018-02-09 15:14:09 +01:00
Xavier Carpentier
4f2648c0b4 Merge branch 'master' of https://github.com/FaridSafi/react-native-gifted-chat 2018-01-23 17:57:46 +01:00
Xavier Carpentier
d3c68c3955 fix(snapshot): max height 200 2018-01-23 17:57:35 +01:00
Xavier Carpentier
b9ead9f2aa MAX_COMPOSER_HEIGHT to 200 2018-01-23 15:36:21 +01:00
Xavier Carpentier
85c6b0d69a fix(redundant): fix issue #704 (#708) 2018-01-16 10:19:49 -05:00
Xavier Carpentier
5dd6c73fb6 fix(avatar): remove default (#707)
* fix(avatar): remove default

* fix(test): update snapshot
2018-01-16 13:20:50 +01:00
Xavier Carpentier
b388d9ff6e fix(onPressActionButton): no default (#684) 2017-12-29 16:12:42 +01:00
Xavier Carpentier
86046e3e6f Merge branch 'master' of https://github.com/FaridSafi/react-native-gifted-chat 2017-12-20 18:01:35 +01:00
Xavier Carpentier
ed765b4d38 fix(typos): carot => carrot 2017-12-20 18:01:08 +01:00
Xavier Carpentier
e0546481b3 Add Jest tests and Codecov reports (#673)
* chore(test): add jest

* chore(coverage): add codecov to circleci

* chore(vscode): remove vscode from git

* chore(test): snapshot all component
2017-12-20 10:53:33 -05:00
Xavier Carpentier
1cf028d85f fix(lint): GiftedChat 2017-12-18 21:51:23 +01:00
Xavier Carpentier
587319e2ab fix(lint): LoaderEarlier scrunched 2017-12-18 21:49:41 +01:00
Xavier Carpentier
ce91bf33b1 chore(lint): de-order main file method 2017-12-18 21:42:58 +01:00
Xavier Carpentier
4571ddabf6 fix(lint): after upgradeC 2017-12-18 21:17:39 +01:00
Xavier Carpentier
3f09d3804b fix(Color): naming 2017-12-18 20:42:12 +01:00
Xavier Carpentier
e5f0cb264c fix(naming): Color and Constant 2017-12-18 20:36:09 +01:00
Xavier Carpentier
aefde5cda4 fix(staless component): missed props 2017-12-18 17:16:43 +01:00