Skip to content
Permalink
Browse files

update sponsor

  • Loading branch information...
FaridSafi committed Apr 13, 2019
1 parent 2baab97 commit 933a56ac9bdbc77ea6d68a9ed8713a188ec80244
Showing with 42 additions and 12,190 deletions.
  1. +0 −1 .eslintignore
  2. +1 −1 .npmignore
  3. +41 −28 README.md
  4. +0 −3 example-pusher-chatkit/.babelrc
  5. +0 −6 example-pusher-chatkit/.buckconfig
  6. +0 −54 example-pusher-chatkit/.flowconfig
  7. +0 −1 example-pusher-chatkit/.gitattributes
  8. +0 −56 example-pusher-chatkit/.gitignore
  9. +0 −1 example-pusher-chatkit/.watchmanconfig
  10. +0 −8 example-pusher-chatkit/App.js
  11. +0 −75 example-pusher-chatkit/MyChat.js
  12. +0 −26 example-pusher-chatkit/README.md
  13. +0 −65 example-pusher-chatkit/android/app/BUCK
  14. +0 −150 example-pusher-chatkit/android/app/build.gradle
  15. +0 −70 example-pusher-chatkit/android/app/proguard-rules.pro
  16. +0 −26 example-pusher-chatkit/android/app/src/main/AndroidManifest.xml
  17. +0 −15 example-pusher-chatkit/android/app/src/main/java/com/giftedchatwithchatkit/MainActivity.java
  18. +0 −45 example-pusher-chatkit/android/app/src/main/java/com/giftedchatwithchatkit/MainApplication.java
  19. BIN example-pusher-chatkit/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
  20. BIN example-pusher-chatkit/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
  21. BIN example-pusher-chatkit/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
  22. BIN example-pusher-chatkit/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  23. +0 −3 example-pusher-chatkit/android/app/src/main/res/values/strings.xml
  24. +0 −8 example-pusher-chatkit/android/app/src/main/res/values/styles.xml
  25. +0 −24 example-pusher-chatkit/android/build.gradle
  26. +0 −20 example-pusher-chatkit/android/gradle.properties
  27. BIN example-pusher-chatkit/android/gradle/wrapper/gradle-wrapper.jar
  28. +0 −5 example-pusher-chatkit/android/gradle/wrapper/gradle-wrapper.properties
  29. +0 −164 example-pusher-chatkit/android/gradlew
  30. +0 −90 example-pusher-chatkit/android/gradlew.bat
  31. +0 −8 example-pusher-chatkit/android/keystores/BUCK
  32. +0 −4 example-pusher-chatkit/android/keystores/debug.keystore.properties
  33. +0 −3 example-pusher-chatkit/android/settings.gradle
  34. +0 −4 example-pusher-chatkit/app.json
  35. +0 −4 example-pusher-chatkit/index.js
  36. +0 −54 example-pusher-chatkit/ios/GiftedChatWithChatkit-tvOS/Info.plist
  37. +0 −24 example-pusher-chatkit/ios/GiftedChatWithChatkit-tvOSTests/Info.plist
  38. +0 −1,468 example-pusher-chatkit/ios/GiftedChatWithChatkit.xcodeproj/project.pbxproj
  39. +0 −129 ...it/ios/GiftedChatWithChatkit.xcodeproj/xcshareddata/xcschemes/GiftedChatWithChatkit-tvOS.xcscheme
  40. +0 −129 ...chatkit/ios/GiftedChatWithChatkit.xcodeproj/xcshareddata/xcschemes/GiftedChatWithChatkit.xcscheme
  41. +0 −14 example-pusher-chatkit/ios/GiftedChatWithChatkit/AppDelegate.h
  42. +0 −35 example-pusher-chatkit/ios/GiftedChatWithChatkit/AppDelegate.m
  43. +0 −42 example-pusher-chatkit/ios/GiftedChatWithChatkit/Base.lproj/LaunchScreen.xib
  44. +0 −38 example-pusher-chatkit/ios/GiftedChatWithChatkit/Images.xcassets/AppIcon.appiconset/Contents.json
  45. +0 −6 example-pusher-chatkit/ios/GiftedChatWithChatkit/Images.xcassets/Contents.json
  46. +0 −56 example-pusher-chatkit/ios/GiftedChatWithChatkit/Info.plist
  47. +0 −16 example-pusher-chatkit/ios/GiftedChatWithChatkit/main.m
  48. +0 −68 example-pusher-chatkit/ios/GiftedChatWithChatkitTests/GiftedChatWithChatkitTests.m
  49. +0 −24 example-pusher-chatkit/ios/GiftedChatWithChatkitTests/Info.plist
  50. +0 −9,095 example-pusher-chatkit/package-lock.json
  51. +0 −24 example-pusher-chatkit/package.json
  52. BIN example-pusher-chatkit/screenshots/01-basic-gifted-chat.png
  53. BIN example-pusher-chatkit/screenshots/02-chatkit-create.png
  54. BIN example-pusher-chatkit/screenshots/03-enable-endpoint.png
  55. BIN example-pusher-chatkit/screenshots/04-create-user-room.png
  56. BIN example-pusher-chatkit/screenshots/05-send-message.png
  57. BIN media/logo_sponsor.png
@@ -3,5 +3,4 @@ android
ios
example
example-slack-message
example-pusher-chatkit
example-expo
@@ -1,7 +1,6 @@
example/
example-expo/
example-slack-message/
example-pusher-chatkit/
TODO.md
screenshots/
.babelrc
@@ -10,3 +9,4 @@ README.md
ISSUE_TEMPLATE.md
circle.yml
codecov.yml
media/
@@ -9,8 +9,7 @@
💬 Gifted Chat
</h3>
<p align="center">
The most complete chat UI for React Native <br/>
<small>formerly known as Gifted Messenger</small>
The most complete chat UI for React Native
</p>
<p align="center">
<a href="https://www.npmjs.com/package/react-native-gifted-chat">
@@ -34,6 +33,17 @@
<a href="https://snack.expo.io/@xcarpentier/gifted-chat" target="_blank"><i>demo</i></a>
</p>
## Sponsor
<p align="center">
<img src="https://raw.githubusercontent.com/FaridSafi/react-native-gifted-chat/sponsor-lereacteur/media/logo_sponsor.png">
<br>
<p align="center">
Coding Bootcamp in Paris co-founded by Farid Safi
</p>
<a href="https://www.lereacteur.io" target="_blank">Click to learn more 🙌</a>
</p>
## Features
- Fully customizable components
@@ -70,35 +80,35 @@
## Example
```jsx
import React from 'react'
import { GiftedChat } from 'react-native-gifted-chat'
import React from "react";
import { GiftedChat } from "react-native-gifted-chat";
class Example extends React.Component {
state = {
messages: [],
}
messages: []
};
componentWillMount() {
this.setState({
messages: [
{
_id: 1,
text: 'Hello developer',
text: "Hello developer",
createdAt: new Date(),
user: {
_id: 2,
name: 'React Native',
avatar: 'https://placeimg.com/140/140/any',
},
},
],
})
name: "React Native",
avatar: "https://placeimg.com/140/140/any"
}
}
]
});
}
onSend(messages = []) {
this.setState(previousState => ({
messages: GiftedChat.append(previousState.messages, messages),
}))
messages: GiftedChat.append(previousState.messages, messages)
}));
}
render() {
@@ -107,10 +117,10 @@ class Example extends React.Component {
messages={this.state.messages}
onSend={messages => this.onSend(messages)}
user={{
_id: 1,
_id: 1
}}
/>
)
);
}
}
```
@@ -209,20 +219,23 @@ e.g. System Message
- **`onInputTextChanged`** _(Function)_ - Callback when the input text changes
- **`maxInputLength`** _(Integer)_ - Max message composer TextInput length
- **`parsePatterns`** _(Function)_ - Custom parse patterns for [react-native-parsed-text](https://github.com/taskrabbit/react-native-parsed-text) used to linkify message content (like URLs and phone numbers), e.g.:
```js
<GiftedChat
parsePatterns={(linkStyle) => [
{ type: 'phone', style: linkStyle, onPress: this.onPressPhoneNumber },
{ pattern: /#(\w+)/, style: { ...linkStyle, styles.hashtag }, onPress: this.onPressHashtag },
]}
/>
```

```js
<GiftedChat
parsePatterns={(linkStyle) => [
{ type: 'phone', style: linkStyle, onPress: this.onPressPhoneNumber },
{ pattern: /#(\w+)/, style: { ...linkStyle, styles.hashtag }, onPress: this.onPressHashtag },
]}
/>
```

- **`extraData`** _(Object)_ - Extra props for re-rendering FlatList on demand. This will be useful for rendering footer etc.
- **`minComposerHeight`** _(Object)_ - Custom min height of the composer.
- **`maxComposerHeight`** _(Object)_ - Custom max height of the composer.
* **`scrollToBottom`** _(Bool)_ - Enables the scrollToBottom Component (Default is false)
* **`scrollToBottomComponent`** _(Function)_ - Custom Scroll To Bottom Component container
* **`scrollToBottomOffset`** _(Integer)_ - Custom Height Offset upon which to begin showing Scroll To Bottom Component (Default is 200)

* **`scrollToBottom`** _(Bool)_ - Enables the scrollToBottom Component (Default is false)
* **`scrollToBottomComponent`** _(Function)_ - Custom Scroll To Bottom Component container
* **`scrollToBottomOffset`** _(Integer)_ - Custom Height Offset upon which to begin showing Scroll To Bottom Component (Default is 200)
* **`alignTop`** _(Boolean)_ Controls whether or not the message bubbles appear at the top of the chat (Default is false - bubbles align to bottom)

## Imperative methods

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 933a56a

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