Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge latest from origin #19

Merged
merged 106 commits into from
Apr 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
1b27a2f
[Request] Add prop for tintColor for ActionSheet in Actions #185
brianinator Aug 15, 2016
3dda3ec
Update default optionTintColor to native color
brianinator Aug 16, 2016
a566ee6
Merge branch 'release/v0.0.9' into develop
FaridSafi Aug 19, 2016
0100070
Initial support tick messages
jeromegrosse Sep 7, 2016
940af36
The message sent and delivered props have been removed from GiftedCha…
jeromegrosse Sep 8, 2016
2bfc151
Added possibility to override the behaviour of renderTicks, deleted n…
jeromegrosse Sep 9, 2016
06c9581
Updated example and ticks on the right the time and ticks only appear…
jeromegrosse Sep 10, 2016
8bf17b4
renderTick: Move the constant declaration to the top of the function
jeromegrosse Sep 11, 2016
03f199c
Expose GiftedAvatar
jeromegrosse Oct 4, 2016
a7643a9
renderTick: Possibility to change style of the ticks passing the para…
jeromegrosse Oct 5, 2016
df5be9d
Change the new messages' ids
dgdavid Oct 9, 2016
14b7ca9
fixed chat height bug
Nov 4, 2016
ca44247
Refactor utils into stand-alone functions
scarmuega Nov 28, 2016
13cee86
Improve readability of utils
scarmuega Dec 2, 2016
e8f85b1
Keep improving readability of utils
scarmuega Dec 3, 2016
042e320
Add utils to root exports
scarmuega Dec 8, 2016
c4bb53b
Add prop onInputTextChanged on GiftedChat API and help fix #286
jayshah123 Dec 12, 2016
2223828
Maintain backward compatibility with deprecation warning
scarmuega Dec 17, 2016
2fe34a8
Merge pull request #292 from scarmuega/refactor-utils
kfiroo Dec 18, 2016
3078e40
Merge pull request #197 from devbriguy/patch-1
kfiroo Dec 18, 2016
829a7aa
Add eslint script (extends airbnb + react + react-native)
cooperka Dec 21, 2016
0e80f8a
Upgrade to eslint config v0.2.3
cooperka Dec 22, 2016
7ac0ceb
Merge pull request #317 from cooperka/add-eslint
kfiroo Dec 22, 2016
e84de91
Add react-native-lightbox for enlarging chat images
cooperka Dec 12, 2016
370d031
Add navigator to propTypes
cooperka Dec 13, 2016
330b18f
Use a commit hash to fix Lightbox warning [Android]
cooperka Jan 2, 2017
af89b5e
Merge branch 'master' into feature-expose-giftedavatar
jeromegrosse Jan 4, 2017
f9b8342
Remove touch events and external keyboard dependency
tafelito Jan 4, 2017
002221d
Bump RN version
tafelito Jan 4, 2017
9b30f8c
Remove commented code
tafelito Jan 4, 2017
d1ca46c
Downgrade RN version
tafelito Jan 4, 2017
fd6afd7
Enabling access to Library
vgorte Jan 4, 2017
57fd416
Remove dependency from package.json
tafelito Jan 5, 2017
134faf6
Update property
charlle Jan 9, 2017
55447ae
Update property for Gifted Chat
charlle Jan 9, 2017
6ba3d59
Add 'onPressActionButton' prop
cooperka Jan 9, 2017
270de9b
Merge pull request #333 from cribspot/on-press-action-button
kfiroo Jan 10, 2017
8e87bc4
Add 'imageProps' prop, passed through to <Image>
cooperka Jan 10, 2017
c73fa48
Use 'lightboxProps' instead of just 'navigator'
cooperka Jan 10, 2017
2d7963f
Merge pull request #332 from charlle/bug-fix/update-keyboard-property
kfiroo Jan 10, 2017
9d7ca0b
Merge pull request #304 from cooperka/lightbox
kfiroo Jan 10, 2017
78e1701
Merge pull request #226 from jeromegrosse/feature-tick-delivery-read
kfiroo Jan 12, 2017
d4dd5f7
config ListView props support
luhui Jan 18, 2017
41a072a
fix warning for Avatar
melihmucuk Jan 18, 2017
72cdf40
Merge pull request #336 from melihmucuk/patch-1
kfiroo Jan 18, 2017
ebc2c9b
avoid listViewProps to override render methd and datasources
luhui Jan 18, 2017
aa64680
Add listViewPoprs description to README
luhui Jan 18, 2017
b5d27a8
Merge branch 'master' of https://github.com/FaridSafi/react-native-gi…
tafelito Jan 18, 2017
6152dca
add listViewProps to default props and propTypes
luhui Jan 18, 2017
dde45b3
Downgrade RN version to original
tafelito Jan 18, 2017
5a231ee
Merge pull request #335 from luhui/master
kfiroo Jan 18, 2017
bc820fa
Merge branch 'master' into master
tafelito Jan 18, 2017
a848484
Merge pull request #337 from tafelito/master
kfiroo Jan 18, 2017
0849fca
Update prop validation for keyboardShouldPersistTaps
tafelito Jan 18, 2017
8dbb7b9
Merge branch 'master' of https://github.com/tafelito/react-native-gif…
tafelito Jan 18, 2017
c76e56e
Update Readme
tafelito Jan 18, 2017
d93b352
Update RN version to 0.40
tafelito Jan 18, 2017
f9fca62
Merge pull request #339 from tafelito/keyboard
kfiroo Jan 18, 2017
0c3460c
Merge pull request #328 from vgorte/master
kfiroo Jan 23, 2017
7b967da
Merge branch 'master' into master
tafelito Jan 23, 2017
e862846
Merge pull request #340 from tafelito/master
kfiroo Jan 24, 2017
f5a8fd1
Merge pull request #254 from jeromegrosse/feature-expose-giftedavatar
kfiroo Jan 25, 2017
2a40add
Merge master branch and resolve merge conflicts in README.md
jayshah123 Jan 28, 2017
985b768
Merge pull request #277 from gwendall/master
kfiroo Jan 29, 2017
d3387e2
Merge pull request #303 from jayshah123/upstreamPR
kfiroo Jan 29, 2017
fbf6256
readme for 0.1.0
kfiroo Jan 29, 2017
709678c
bump npm versions
kfiroo Jan 29, 2017
3680691
Improve send message performance
kfiroo Jan 29, 2017
b8f2191
add missing props to inner message components
kfiroo Jan 29, 2017
54cb6ce
v0.1.0
kfiroo Jan 29, 2017
67011fa
fix for npm dependency
kirillpisarev Jan 30, 2017
7ba41ea
Merge pull request #354 from MaFiaaaaAxD/master
kfiroo Jan 30, 2017
33daf8d
Merge pull request #259 from dgdavid/feature/message-id-generator-prop
kfiroo Jan 30, 2017
5d2f2c6
Merge remote-tracking branch 'origin/develop'
kfiroo Jan 30, 2017
24d09a5
node-uuid -> uuid
kfiroo Jan 30, 2017
c63a3ae
v0.1.1
kfiroo Jan 30, 2017
30e31e8
Create GiftedChatInteractionManager.js
Jan 30, 2017
b43cd7c
Update GiftedChat.js
Jan 30, 2017
9c1f59d
v0.1.2
kfiroo Feb 8, 2017
9dc8eba
v0.1.3
kfiroo Feb 8, 2017
fa05f6c
render avatar on top
gperdomor Feb 10, 2017
6672d11
Merge pull request #369 from gperdomor/feature/avatar-on-top
kfiroo Feb 12, 2017
f6d8956
Remove duplicated enableEmptySections
yoniji Feb 23, 2017
7de1c1c
Merge pull request #378 from yoniji/patch-1
kfiroo Feb 23, 2017
b6e4208
If the keyboard has been dismissed and the user sends a message, the …
erenn16 Feb 24, 2017
87a37a0
Allow minimum input tool bar height to be configurable in properties
erenn16 Mar 1, 2017
9d56c4a
Update Bubble.js
brendan-rius Mar 3, 2017
ddb6510
Export MessageContainer in GiftedChat
brendan-rius Mar 7, 2017
d73284b
fix for _messageContainerRef === null
scott-laursen Mar 17, 2017
4406a55
Merge pull request #382 from erenn16/fix-reset-input-toolbar
kfiroo Mar 26, 2017
30e90c8
Merge pull request #387 from brendan-rius/patch-1
kfiroo Mar 26, 2017
a8fe499
Merge pull request #402 from scott-laursen/master
kfiroo Mar 26, 2017
2914239
Merge pull request #355 from razvanpaul/master
kfiroo Mar 26, 2017
e3a320e
Bubble.js: Default value for prop bottomContainerStyle
jeromegrosse Mar 26, 2017
ec3cba0
Merge pull request #408 from jeromegrosse/bug-undefined-not-function-…
kfiroo Mar 26, 2017
41f64f8
Applying fixes per comments
erenn16 Mar 26, 2017
4e9a4aa
Merge pull request #392 from brendan-rius/patch-2
kfiroo Mar 27, 2017
f14f5c4
Merge pull request #386 from erenn16/fix-tool-bar-constant-height
kfiroo Mar 27, 2017
07c6d0e
rename @exponent to @expo
kfiroo Mar 27, 2017
3c891df
v0.1.4
kfiroo Mar 27, 2017
f7c5f4e
image source add number type
Mar 30, 2017
69cff36
formatting
kfiroo Mar 30, 2017
1d675aa
Merge pull request #412 from shadowcz007/patch-1
kfiroo Mar 30, 2017
8dee9e8
Merge remote-tracking branch 'FaridSafi/master' into fix-package-name
kennethlynne Apr 3, 2017
6bc0813
Merge remote-tracking branch 'FaridSafi/master' into update-package
kennethlynne Apr 3, 2017
c48347e
add test command
kennethlynne Apr 3, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
android
ios
22 changes: 9 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"plugins": [
"react",
"react-native"
],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures" : {
experimentalObjectRestSpread: true
}
},
"extends": "cooperka/react-native",

"env": {
"node": true
}
"browser": true,
"jest": true
},

// Any rules here will override those from
// https://github.com/cooperka/eslint-config-cooperka.
"rules": {}
}
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ The most complete chat UI for React Native (formerly known as Gifted Messenger)
![](https://raw.githubusercontent.com/FaridSafi/react-native-gifted-chat/master/screenshots/gifted-chat-2.png)

## Dependency
React Native minimum version `0.29.0`
Use `0.0.10` for RN < `0.40.0`
Use `0.1.0` for RN >= `0.40.0`

## Installation
`npm install react-native-gifted-chat --save`
Expand Down Expand Up @@ -94,6 +95,7 @@ See [example/App.js](example/App.js)
## Props

- **`messages`** _(Array)_ - messages to display
- **`messageIdGenerator`** _(Function)_ - generate id for new message. By default is a UUID v4 generated by [uuid](https://github.com/kelektiv/node-uuid).
- **`user`** _(Object)_ - user sending the messages `{_id, name, avatar}`
- **`onSend`** _(Function)_ - function to call when sending a message
- **`locale`** _(String)_ - localize the dates
Expand All @@ -104,10 +106,13 @@ See [example/App.js](example/App.js)
- **`renderLoading`** _(Function)_ - render a loading view when initializing
- **`renderLoadEarlier`** _(Function)_ - render the load earlier button
- **`renderAvatar`** _(Function)_ - renders the message avatar
- **`renderAvatarOnTop`** _(Bool)_ - render the message avatar, on top of consecutive messages. The default value is `false`.
- **`renderBubble`** _(Function)_ - render the message bubble
- **`renderMessage`** _(Function)_ - render the message container
- **`renderMessageText`** _(Function)_ - render the message text
- **`renderMessageImage`** _(Function)_ - render the message image
- **`imageProps`** _(Object)_ - extra props to be passed to the [`<Image>`](https://facebook.github.io/react-native/docs/image.html) component created by the default `renderMessageImage`
- **`lightboxProps`** _(Object)_ - extra props to be passed to the MessageImage's [Lightbox](https://github.com/oblador/react-native-lightbox)
- **`renderCustomView`** _(Function)_ - render a custom view inside the bubble
- **`renderDay`** _(Function)_ - render the day above a message
- **`renderTime`** _(Function)_ - render the message time
Expand All @@ -117,9 +122,13 @@ See [example/App.js](example/App.js)
- **`renderComposer`** _(Function)_ - render the text input message composer
- **`renderSend`** _(Function)_ - render the send button
- **`renderAccessory`** _(Function)_ - renders a second line of actions below the message composer
- **`onPressActionButton`** _(Function)_ - callback to perform custom logic when the Action button is pressed (the default `actionSheet` will not be used)
- **`renderSuggestions`** _(Function)_ - renders suggestions for composer
- **`bottomOffset`** _(Integer)_ - distance of the chat from the bottom of the screen, useful if you display a tab bar

- **`minInputToolbarHeight`** _(Integer)_ - minimum height of the input toolbar. The default value is `44`.
- **`listViewProps`** _(Object)_ - extra props to be passed to the [`<ListView>`](https://facebook.github.io/react-native/docs/listview.html), some props can not be override, see the code in `render` method of `MessageContainer` for detail
- **`keyboardShouldPersistTaps`** _(Enum)_ - determines when the keyboard should stay visible after a tap [`<ScrollView>`](https://facebook.github.io/react-native/docs/scrollview.html)
- **`onInputTextChanged`** _(Function)_ - function that will be called when input text changes

## Features
- Custom components
Expand Down
2 changes: 2 additions & 0 deletions example/data/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module.exports = [
_id: 1,
name: 'Developer',
},
sent: true,
received: true,
// location: {
// latitude: 48.864601,
// longitude: 2.398704
Expand Down
Loading