Skip to content

feat: v8 #3137

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

Merged
merged 46 commits into from
Jun 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
3893076
Merge branch 'develop' of github.com:GetStream/stream-chat-react-nati…
khushal87 May 20, 2025
2500d45
Merge branch 'develop' of github.com:GetStream/stream-chat-react-nati…
khushal87 May 20, 2025
0b20050
Merge branch 'develop' of github.com:GetStream/stream-chat-react-nati…
khushal87 May 21, 2025
e324cb5
feat!: add text composer and poll composer integration to the message…
khushal87 May 26, 2025
10ac4ca
Merge branch 'develop' of github.com:GetStream/stream-chat-react-nati…
khushal87 May 29, 2025
5ef5da3
chore: resolve conflicts from develop
khushal87 May 29, 2025
70b11e3
feat!: message composer attachment manager integration and improve se…
khushal87 Jun 10, 2025
82c9c8f
chore: update lock files
isekovanic Jun 10, 2025
efcd573
fix: check the send link capability before sending message (#3116)
khushal87 Jun 10, 2025
2402084
Merge branch 'develop' into V8
isekovanic Jun 11, 2025
5e61cf4
fix: poll creation and optimistic updates (#3117)
isekovanic Jun 11, 2025
aadd78f
fix: improve command button usage
khushal87 Jun 12, 2025
3c2aa69
test: fix more tests and remove isValidMessage tests as its already h…
khushal87 Jun 13, 2025
7b32f34
fix: remove redundant styles from image upload preview
khushal87 Jun 18, 2025
df2e996
feat: draft message (#3114)
khushal87 Jun 18, 2025
570b872
fix: use composer for show thread message in channel checkbox (#3122)
khushal87 Jun 18, 2025
cf0dbec
test: add test for message input context and few other components/uti…
khushal87 Jun 18, 2025
5a4f080
fix: final broken test
isekovanic Jun 19, 2025
aa22074
fix: remove unused props from message input
khushal87 Jun 19, 2025
0cf782a
Merge branch 'V8' of github.com:GetStream/stream-chat-react-native in…
khushal87 Jun 19, 2025
d958b47
fix: remove unused props from message input
khushal87 Jun 19, 2025
0f855c0
fix: openFilePicker removal and fix show more options
khushal87 Jun 20, 2025
7a0dad8
chore: setup v8 rc candidate and workflows (#3127)
khushal87 Jun 23, 2025
0c680ca
feat: handle command injection on the sdk (#3124)
khushal87 Jun 23, 2025
8a812b5
chore: resolve conflicts from develop and merge it
khushal87 Jun 23, 2025
06f09a4
chore: resolve conflicts from V8
khushal87 Jun 23, 2025
4b91160
fix: broken tests due to 0.79 merge
khushal87 Jun 23, 2025
d680811
Merge branch 'develop' into V8
isekovanic Jun 23, 2025
f4fd6a7
fix: restructure file and image upload preview to attachment upload p…
khushal87 Jun 24, 2025
1783a3e
fix: draft pending task deletion
isekovanic Jun 24, 2025
39d9345
fix: poll switch inputs issue with async state (#3135)
khushal87 Jun 24, 2025
1a1b292
fix: poll switch inputs issue with async state
khushal87 Jun 24, 2025
64b7a49
chore: bump stream-chat to latest
isekovanic Jun 24, 2025
17378ca
feat: bump i18n to latest and do all necessary changes in the SDK to …
isekovanic Jun 24, 2025
21ddd9d
Merge branch 'develop' into V8
isekovanic Jun 25, 2025
7351beb
chore: update relevant yarn.locks
isekovanic Jun 25, 2025
3426225
fix: linter issues
isekovanic Jun 25, 2025
a7a0dc6
fix: import cycles issue for polls and translations
khushal87 Jun 25, 2025
5c30e24
Merge branch 'V8' of github.com:GetStream/stream-chat-react-native in…
khushal87 Jun 25, 2025
b650d5d
fix: message composer cyclical deps
isekovanic Jun 25, 2025
2e53d79
chore: bump expomessaging yarn.lock
isekovanic Jun 25, 2025
82992f3
fix: limit offline messages
isekovanic Jun 25, 2025
eea828c
Merge branch 'develop' into V8
isekovanic Jun 25, 2025
d8a2921
fix: update pod lock files
khushal87 Jun 26, 2025
b6e7893
Revert "chore: setup v8 rc candidate and workflows (#3127)"
isekovanic Jun 26, 2025
515de7d
chore: bump sample apps all around
isekovanic Jun 26, 2025
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
9 changes: 2 additions & 7 deletions examples/ExpoMessaging/app/channel/[cid]/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext, useEffect } from 'react';
import React, { useContext } from 'react';
import { SafeAreaView, View } from 'react-native';
import { Channel, MessageInput, MessageList, useAttachmentPickerContext } from 'stream-chat-expo';
import { Channel, MessageInput, MessageList } from 'stream-chat-expo';
import { Stack, useRouter } from 'expo-router';
import { AuthProgressLoader } from '../../../components/AuthProgressLoader';
import { AppContext } from '../../../context/AppContext';
Expand All @@ -9,13 +9,8 @@ import { useHeaderHeight } from '@react-navigation/elements';
export default function ChannelScreen() {
const router = useRouter();
const { setThread, channel } = useContext(AppContext);
const { setTopInset } = useAttachmentPickerContext();
const headerHeight = useHeaderHeight();

useEffect(() => {
setTopInset(headerHeight);
}, [headerHeight, setTopInset]);

if (!channel) {
return <AuthProgressLoader />;
}
Expand Down
12 changes: 3 additions & 9 deletions examples/ExpoMessaging/components/ChatWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { PropsWithChildren, useRef } from 'react';
import React, { PropsWithChildren } from 'react';
import {
Chat,
OverlayProvider,
Expand All @@ -8,7 +8,6 @@ import {
} from 'stream-chat-expo';
import { AuthProgressLoader } from './AuthProgressLoader';
import { STREAM_API_KEY, user, userToken } from '../constants';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useStreamChatTheme } from '../useStreamChatTheme';

const streami18n = new Streami18n({
Expand All @@ -20,7 +19,6 @@ SqliteClient.logger = (level, message, extraData) => {
};

export const ChatWrapper = ({ children }: PropsWithChildren<{}>) => {
const { bottom } = useSafeAreaInsets();
const chatClient = useCreateChatClient({
apiKey: STREAM_API_KEY,
userData: user,
Expand All @@ -33,12 +31,8 @@ export const ChatWrapper = ({ children }: PropsWithChildren<{}>) => {
}

return (
<OverlayProvider
bottomInset={bottom}
i18nInstance={streami18n}
value={{ style: theme }}
>
<Chat enableOfflineSupport client={chatClient} i18nInstance={streami18n}>
<OverlayProvider i18nInstance={streami18n} value={{ style: theme }}>
<Chat client={chatClient} i18nInstance={streami18n}>
{children}
</Chat>
</OverlayProvider>
Expand Down
33 changes: 25 additions & 8 deletions examples/ExpoMessaging/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1404,6 +1404,11 @@
dependencies:
regenerator-runtime "^0.14.0"

"@babel/runtime@^7.27.1":
version "7.27.6"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.27.6.tgz#ec4070a04d76bae8ddbb10770ba55714a417b7c6"
integrity sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==

"@babel/template@^7.20.7", "@babel/template@^7.21.9":
version "7.21.9"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.21.9.tgz#bf8dad2859130ae46088a99c1f265394877446fb"
Expand Down Expand Up @@ -2581,6 +2586,11 @@
dependencies:
"@types/yargs-parser" "*"

"@ungap/structured-clone@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8"
integrity sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==

"@urql/core@^5.0.0", "@urql/core@^5.0.6":
version "5.0.8"
resolved "https://registry.yarnpkg.com/@urql/core/-/core-5.0.8.tgz#eba39eaa2bf9a0a963383e87a65cba7a9ca794bd"
Expand Down Expand Up @@ -4120,6 +4130,13 @@ i18next@^21.10.0:
dependencies:
"@babel/runtime" "^7.17.2"

i18next@^25.2.1:
version "25.2.1"
resolved "https://registry.yarnpkg.com/i18next/-/i18next-25.2.1.tgz#23cf8794904f551f577558d93c84b0fb6cd489a2"
integrity sha512-+UoXK5wh+VlE1Zy5p6MjcvctHXAhRwQKCxiJD8noKZzIXmnAX8gdHX5fLPA3MEVxEN4vbZkQFy8N0LyD9tUqPw==
dependencies:
"@babel/runtime" "^7.27.1"

ieee754@^1.1.13:
version "1.2.1"
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
Expand Down Expand Up @@ -6110,10 +6127,10 @@ [email protected]:
version "0.0.0"
uid ""

stream-chat-react-native-core@7.1.2:
version "7.1.2"
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-7.1.2.tgz#5870a1188ecbf8c3b705d74379d19ff77efce2c5"
integrity sha512-Ob+V8tt+7L+7BRkWyWbFlju6E/8MAoB/NUZ8ENtEEijq5QBNWnVvZctQSZuekIOVrfoP9EenlIOPadHnN/mvYA==
stream-chat-react-native-core@7.2.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-7.2.0.tgz#9c60f0235a84f22077dd56c57a532e19701dcd15"
integrity sha512-DXToshO7/6Bu+Rk03fTeP3W3LFlkOpRph/Iu9OtAU0QzDdG2IgMa1tNhiDEmFmJHjWROjFZtBmyV1Cuk4vFiAQ==
dependencies:
"@gorhom/bottom-sheet" "^5.1.6"
dayjs "1.11.13"
Expand All @@ -6133,10 +6150,10 @@ [email protected]:
version "0.0.0"
uid ""

stream-chat@^9.7.0:
version "9.7.0"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.7.0.tgz#8302a4dfd2b68115c57cd0a102976542a79cf132"
integrity sha512-8K4RQAUFfznCxpJ5CMIrMQQLroaZ1snB4aR/Xnwa9UpxNCzn3kIi61AVkfsaHTHGojPz5LA3c3faVb251u4HnA==
stream-chat@^9.7.0, stream-chat@^9.9.0:
version "9.9.0"
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.9.0.tgz#59ac996e6e0ca6b3e3a0041954ae99a43541ec13"
integrity sha512-4tqedL7NfDhwJIKRBKGdvNu4x0ifKO+qxyc9TEWe+LLaW3Qed4txKysrVKnDfj/rx3iZuIwrMV7VeW5yxZfP5w==
dependencies:
"@types/jsonwebtoken" "^9.0.8"
"@types/ws" "^8.5.14"
Expand Down
38 changes: 34 additions & 4 deletions examples/SampleApp/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { DevSettings, LogBox, Platform, useColorScheme } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { DarkTheme, DefaultTheme, NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { SafeAreaProvider, useSafeAreaInsets } from 'react-native-safe-area-context';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import {
Chat,
createTextComposerEmojiMiddleware,
OverlayProvider,
setupCommandUIMiddlewares,
SqliteClient,
ThemeProvider,
useOverlayContext,
Expand Down Expand Up @@ -34,8 +36,12 @@ import { OneOnOneChannelDetailScreen } from './src/screens/OneOnOneChannelDetail
import { SharedGroupsScreen } from './src/screens/SharedGroupsScreen';
import { ThreadScreen } from './src/screens/ThreadScreen';
import { UserSelectorScreen } from './src/screens/UserSelectorScreen';
import { init, SearchIndex } from 'emoji-mart';
import data from '@emoji-mart/data';

import type { LocalMessage, StreamChat } from 'stream-chat';
import type { LocalMessage, StreamChat, TextComposerMiddleware } from 'stream-chat';

init({ data });

if (__DEV__) {
DevSettings.addMenuItem('Reset local DB (offline storage)', () => {
Expand Down Expand Up @@ -118,6 +124,31 @@ const App = () => {
};
}, []);

useEffect(() => {
if (!chatClient) {
return;
}
chatClient.setMessageComposerSetupFunction(({ composer }) => {
composer.updateConfig({
drafts: {
enabled: true,
},
});

setupCommandUIMiddlewares(composer);

composer.textComposer.middlewareExecutor.insert({
middleware: [
createTextComposerEmojiMiddleware({
emojiSearchIndex: SearchIndex,
}) as TextComposerMiddleware,
],
position: { after: 'stream-io/text-composer/mentions-middleware' },
unique: true,
});
});
}, [chatClient]);

return (
<SafeAreaProvider
style={{
Expand Down Expand Up @@ -169,12 +200,11 @@ const isMessageAIGenerated = (message: LocalMessage) => !!message.ai_generated;
const DrawerNavigatorWrapper: React.FC<{
chatClient: StreamChat;
}> = ({ chatClient }) => {
const { bottom } = useSafeAreaInsets();
const streamChatTheme = useStreamChatTheme();

return (
<GestureHandlerRootView style={{ flex: 1 }}>
<OverlayProvider bottomInset={bottom} value={{ style: streamChatTheme }}>
<OverlayProvider value={{ style: streamChatTheme }}>
<Chat
client={chatClient}
enableOfflineSupport
Expand Down
4 changes: 2 additions & 2 deletions examples/SampleApp/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2425,7 +2425,7 @@ PODS:
- libwebp (~> 1.0)
- SDWebImage/Core (~> 5.10)
- SocketRocket (0.7.1)
- stream-chat-react-native (7.1.2):
- stream-chat-react-native (7.2.0):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -2872,7 +2872,7 @@ SPEC CHECKSUMS:
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
stream-chat-react-native: 45d46c6a3188edf8dfe9c85cd884457ccc232b74
stream-chat-react-native: 2de2866392bfecadf005ec5f0b1f882b613b89ba
Yoga: b2eaabf17044cd4273a661b14eb83f9fd2c90491

PODFILE CHECKSUM: 4f662370295f8f9cee909f1a4c59a614999a209d
Expand Down
4 changes: 4 additions & 0 deletions examples/SampleApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"clean-all": "yarn clean && rm -rf node_modules && rm -rf ios/Pods && rm -rf vendor && bundle install && yarn install && cd ios && bundle exec pod install && cd -"
},
"dependencies": {
"@emoji-mart/data": "^1.2.1",
"@notifee/react-native": "^9.1.8",
"@op-engineering/op-sqlite": "^14.0.4",
"@react-native-async-storage/async-storage": "^2.2.0",
Expand All @@ -36,6 +37,8 @@
"@react-navigation/native": "^7.1.10",
"@react-navigation/stack": "^7.3.3",
"react": "19.0.0",
"emoji-mart": "^5.6.0",
"lodash.mergewith": "^4.6.2",
"react-native": "^0.79.3",
"react-native-audio-recorder-player": "^3.6.13",
"react-native-blob-util": "^0.22.2",
Expand Down Expand Up @@ -64,6 +67,7 @@
"@react-native/typescript-config": "0.79.3",
"@rnx-kit/metro-config": "^2.1.0",
"@types/jest": "^29.5.14",
"@types/lodash.mergewith": "^4.6.9",
"@types/react": "^19.0.0",
"@types/react-test-renderer": "^19.0.0",
"eslint": "^9.28.0",
Expand Down
8 changes: 8 additions & 0 deletions examples/SampleApp/src/components/BottomTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { MentionsTab } from '../icons/MentionsTab';

import type { BottomTabBarProps } from '@react-navigation/bottom-tabs';
import type { Route } from '@react-navigation/native';
import { DraftsTab } from '../icons/DraftsTab';

const styles = StyleSheet.create({
notification: {
Expand Down Expand Up @@ -44,6 +45,13 @@ const getTab = (key: string) => {
notification: <ChannelsUnreadCountBadge />,
title: 'Chats',
};
case 'DraftsScreen':
return {
icon: <DraftsTab />,
iconActive: <DraftsTab active />,
title: 'Drafts',
notification: <ChannelsUnreadCountBadge />,
};
case 'ThreadsScreen':
return {
icon: <ThreadsTab />,
Expand Down
4 changes: 1 addition & 3 deletions examples/SampleApp/src/components/ChannelPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ const CustomChannelPreviewStatus = (
);
};

export const ChannelPreview: React.FC<ChannelPreviewMessengerProps> = (
props,
) => {
export const ChannelPreview: React.FC<ChannelPreviewMessengerProps> = (props) => {
const { channel } = props;

const { setOverlay } = useAppOverlayContext();
Expand Down
Loading