Skip to content

Commit 7c67ba5

Browse files
authored
Merge pull request #378 from GetStream/ts-group-walk-through
TS group walk through changes
2 parents 7f2b011 + 7a68897 commit 7c67ba5

File tree

70 files changed

+4855
-4760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+4855
-4760
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ build/
33
dist/
44
.expo/
55
vendor/
6-
examples/
76
*.md
87
src/components/docs/
98
lib/

CHANGELOG.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,94 @@
11
# Changelog
22

3+
## [2.0.0]
4+
5+
Full TypeScript support
6+
7+
**BREAKING CHANGES**
8+
9+
- You will need to install https://github.com/LinusU/react-native-get-random-values and add this line `import 'react-native-get-random-values';` to your `index.js`
10+
- Expo 39 is now the lowest supported version
11+
12+
### Component prop changes
13+
14+
*Avatar*
15+
- add `testID` prop
16+
17+
*Channel*
18+
- add `additionalKeyboardAvoidingViewProps` prop to allow custom keyboard props
19+
20+
*ChannelListMessenger*
21+
- remove `setActiveChannel` prop
22+
23+
*ChannelPreviewMessenger*
24+
- renamed the `latestMessage` prop to `latestMessagePreview`. This name change is more semantic to what the prop does and reduces confusion with the `lastMessage` prop
25+
26+
*MessageContent*
27+
- removed `retrySendMessage` prop in favor of `retrySendMessage` within `MessagesContext`
28+
29+
*MessageInput*
30+
- remove `parent` prop to `parent_id` as it needs to be just an id string instead of the entire parent object
31+
- add `setInputRef` prop to actually allow forwarding of the TextInput ref controls
32+
33+
*MessageSystem*
34+
- add `formatDate` prop to allow custom date formatting
35+
36+
## [1.3.3] 2020-10-XX UNPUBLISHED
37+
38+
**BREAKING CHANGES**
39+
40+
*ChannelContext*
41+
42+
- We have split the `ChannelContext` into three separate contexts to further modularize the code and reduce renders as items in context change. The following contexts now contain the following values, previously all held within the `ChannelContext`:
43+
44+
- `ChannelContext`:
45+
46+
- `channel`
47+
- `disabled`
48+
- `EmptyStateIndicator`
49+
- `error`
50+
- `eventHistory`
51+
- `lastRead`
52+
- `loading`
53+
- `LoadingIndicator`
54+
- `markRead`
55+
- `members`
56+
- `read`
57+
- `setLastRead`
58+
- `typing`
59+
- `watcherCount`
60+
- `watchers`
61+
62+
- `MessagesContext`
63+
64+
- `Attachment`
65+
- `clearEditingState`
66+
- `editing`
67+
- `editMessage`
68+
- `emojiData`
69+
- `hasMore`
70+
- `loadingMore`
71+
- `loadMore`
72+
- `Message`
73+
- `messages`
74+
- `removeMessage`
75+
- `retrySendMessage`
76+
- `sendMessage`
77+
- `setEditingState`
78+
- `updateMessage`
79+
80+
- `ThreadContext`
81+
82+
- `closeThread`
83+
- `loadMoreThread`
84+
- `openThread`
85+
- `thread`
86+
- `threadHasMore`
87+
- `threadLoadingMore`
88+
- `threadMessages`
89+
90+
- All contexts are exported and any values can be accessed through a higher order component (ex: `withMessagesContext`) or with one of our custom context hooks (ex: access `MessagesContext` by `const { messages } = useMessagesContext();`).
91+
392
## [1.3.2] 2020-10-02
493

594
- SuggestionsList (for user-mentions feature in MessageInput) doesn't update the position as per keyboard position. For the time being, we have fixed this by dismissing the suggestions list when keyboard gets dismissed - [0fdff4f](https://github.com/GetStream/stream-chat-react-native/commit/0fdff4f327908d4b554b8d4172028e666df65242)

0 commit comments

Comments
 (0)