Skip to content

feat: V7 #2999

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 75 commits into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
6c1f94d
chore: modify gh workflows
isekovanic Mar 7, 2025
e443caf
feat: removal of StreamChatGenerics (#2993)
isekovanic Mar 7, 2025
4e6c4b7
chore: remove support for react-native-document-picker (#3000)
isekovanic Mar 7, 2025
d0dd875
Merge branch 'develop' into V7
isekovanic Mar 10, 2025
74a3978
BREAKING CHANGE: V7 release candidate
isekovanic Mar 10, 2025
f519f8a
chore: add rc channel
isekovanic Mar 10, 2025
f359909
fix: typo in branch name
isekovanic Mar 10, 2025
aca5620
feat: trigger breaking change for v7 (#3005)
isekovanic Mar 10, 2025
dfbdcb3
chore: remove dryRun
isekovanic Mar 10, 2025
7243093
chore: bump stream-chat version to latest rc
isekovanic Mar 10, 2025
1f84064
chore: bump stream-chat to latest
isekovanic Mar 11, 2025
228d559
feat: introduce expo-video support (#3010)
isekovanic Mar 12, 2025
52ef753
Merge branch 'develop' into V7
isekovanic Mar 12, 2025
ad0dbc8
fix: lint issues
isekovanic Mar 12, 2025
35dc66e
fix: different types inference with latest stream-chat changes
isekovanic Mar 13, 2025
a070115
chore(deps): update sample apps too
isekovanic Mar 13, 2025
dbdb27e
Merge branch 'develop' into V7
isekovanic Mar 13, 2025
8ec7617
fix: remove generics from new hook
isekovanic Mar 13, 2025
e49b9c0
fix: remove remnants from SCG and fix missing types
isekovanic Mar 13, 2025
b3c67eb
fix: lint issues
isekovanic Mar 13, 2025
1d28a1a
fix: replace TouchableOpacity with Pressable
isekovanic Mar 13, 2025
9154fdd
fix: move to RN TouchableOpacity instead
isekovanic Mar 13, 2025
9569c98
chore(deps): update peer deps
isekovanic Mar 13, 2025
39f4f82
chore: remove unused hooks
isekovanic Mar 13, 2025
e8db262
chore: remove deps scope
isekovanic Mar 13, 2025
f509a27
Merge branch 'develop' into V7
isekovanic Mar 17, 2025
2f336f3
fix: all instances of FormatMessageResponse in respect to the new llc…
isekovanic Apr 1, 2025
98349dd
chore: ref branch specifically
isekovanic Apr 1, 2025
a40724c
fix: try clearing cache
isekovanic Apr 1, 2025
7ea6f38
fix: remove cache clean
isekovanic Apr 1, 2025
fa903f0
fix: remove console.log
isekovanic Apr 2, 2025
fdc9774
fix: use latest commit
isekovanic Apr 2, 2025
e01a1b0
fix: use latest rc of llc
isekovanic Apr 2, 2025
eae044b
chore: use specific commit again
isekovanic Apr 2, 2025
e3d2bc4
Merge branch 'develop' into V7
isekovanic Apr 2, 2025
40dee7e
fix: SCG remnants from merge
isekovanic Apr 2, 2025
d4237bb
Merge branch 'develop' into V7
isekovanic Apr 9, 2025
b947266
fix: lint issues
isekovanic Apr 9, 2025
51361c1
Merge branch 'develop' into V7
isekovanic Apr 10, 2025
491a957
fix: lint issues
isekovanic Apr 10, 2025
b28252b
fix: unify file and image types (#3050)
khushal87 Apr 10, 2025
9ab351d
chore: update deps
isekovanic Apr 10, 2025
e34273c
fix: failing tests and AutoCompleteInput type
isekovanic Apr 11, 2025
3d461d0
chore: update custom data module interfaces
isekovanic Apr 14, 2025
ab7973f
fix: change RNFile to FileReference as per latest client changes (#3061)
khushal87 Apr 22, 2025
af2d2fd
Merge branch 'develop' into V7
isekovanic Apr 23, 2025
9375fa4
fix: merge conflicts
isekovanic Apr 23, 2025
4ad47a1
fix: remove MessageType type from the SDK
khushal87 Apr 23, 2025
96e9401
fix: resolve conflicts from V7 branch
khushal87 Apr 23, 2025
ef3a2a7
fix: resolve conflicts from V7 branch
khushal87 Apr 23, 2025
b1823a8
fix: broken tests
khushal87 Apr 23, 2025
b787c47
fix: useMessageActions remove reserved fields logic
khushal87 Apr 24, 2025
65881a7
revert: useMessageActions change
khushal87 Apr 24, 2025
3f6d111
fix: confine readBy data to Message Status component
khushal87 Apr 24, 2025
3038e7b
fix: change date separator and group styles to ref
khushal87 Apr 25, 2025
54ce9c6
fix: add app changes
khushal87 Apr 28, 2025
5f62753
fix: bump stream-chat to latest rc
isekovanic Apr 28, 2025
cc33ccb
Merge branch 'V7' of github.com:GetStream/stream-chat-react-native in…
khushal87 Apr 29, 2025
e14c614
chore: bump stream-chat version to latest rc again
isekovanic Apr 29, 2025
ba1df1d
Merge pull request #3064 from GetStream/remove-messagetype-type
isekovanic Apr 29, 2025
8467b22
fix: thread messages state not updating properly
isekovanic Apr 29, 2025
33d158a
chore: change type to inferred one
isekovanic Apr 29, 2025
6c96dee
Merge pull request #3068 from GetStream/fix/thread-messages-setting-b…
isekovanic Apr 29, 2025
948b6db
fix: set correct core lib versions
isekovanic Apr 29, 2025
de777de
Merge branch 'develop' into V7
isekovanic Apr 29, 2025
77369b6
chore: bump stream-chat to latest rc again
isekovanic Apr 29, 2025
75117d5
chore: update sample app yarn.locks as well
isekovanic Apr 29, 2025
10d934c
fix: keyboard taking full screen issue when the prefer cross-fade tra…
khushal87 Apr 30, 2025
36ceec1
chore: bump stream-chat-js rc again
isekovanic Apr 30, 2025
ee9e05c
Merge branch 'develop' into V7
isekovanic Apr 30, 2025
dbef2f3
chore: full reinstall after merge from develop
isekovanic Apr 30, 2025
16c16a4
fix: add back mistakenly removed mime dep
isekovanic Apr 30, 2025
5f3d245
Merge branch 'develop' into V7
isekovanic May 6, 2025
2c1be78
fix: revert gh action changes
isekovanic May 6, 2025
4b7dc50
chore: bump stream-chat to latest stable major
isekovanic May 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions examples/ExpoMessaging/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@
{
"microphonePermission": "$(PRODUCT_NAME) would like to use your microphone for voice recording."
}
],
[
"expo-video",
{
"supportsBackgroundPlayback": true,
"supportsPictureInPicture": true
}
]
]
}
Expand Down
3 changes: 1 addition & 2 deletions examples/ExpoMessaging/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ import { ChannelList } from 'stream-chat-expo';
import { useContext, useMemo } from 'react';
import { Stack, useRouter } from 'expo-router';
import { ChannelSort } from 'stream-chat';
import { StreamChatGenerics } from '../types';
import { AppContext } from '../context/AppContext';
import { user } from '../constants';

const filters = {
members: { $in: [user.id] },
type: 'messaging',
};
const sort: ChannelSort<StreamChatGenerics> = { last_updated: -1 };
const sort: ChannelSort = { last_updated: -1 };
const options = {
state: true,
watch: true,
Expand Down
5 changes: 2 additions & 3 deletions examples/ExpoMessaging/components/ChatWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { PropsWithChildren } from 'react';
import React, { PropsWithChildren, useRef } from 'react';
import {
Chat,
OverlayProvider,
Expand All @@ -7,7 +7,6 @@ import {
useCreateChatClient,
} from 'stream-chat-expo';
import { AuthProgressLoader } from './AuthProgressLoader';
import { StreamChatGenerics } from '../types';
import { STREAM_API_KEY, user, userToken } from '../constants';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { useStreamChatTheme } from '../useStreamChatTheme';
Expand All @@ -34,7 +33,7 @@ export const ChatWrapper = ({ children }: PropsWithChildren<{}>) => {
}

return (
<OverlayProvider<StreamChatGenerics>
<OverlayProvider
bottomInset={bottom}
i18nInstance={streami18n}
value={{ style: theme }}
Expand Down
15 changes: 7 additions & 8 deletions examples/ExpoMessaging/context/AppContext.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import { PropsWithChildren, createContext, useContext, useState } from 'react';
import { StreamChatGenerics } from '../types';
import { PropsWithChildren, createContext, useState } from 'react';
import { Channel as ChannelType } from 'stream-chat';
import { ThreadContextValue } from 'stream-chat-expo';

export type AppContextType = {
channel: ChannelType<StreamChatGenerics> | undefined;
setChannel: React.Dispatch<React.SetStateAction<ChannelType<StreamChatGenerics> | undefined>>;
channel: ChannelType | undefined;
setChannel: React.Dispatch<React.SetStateAction<ChannelType | undefined>>;
setThread: React.Dispatch<
React.SetStateAction<ThreadContextValue<StreamChatGenerics>['thread'] | undefined>
React.SetStateAction<ThreadContextValue['thread'] | undefined>
>;
thread: ThreadContextValue<StreamChatGenerics>['thread'] | undefined;
thread: ThreadContextValue['thread'] | undefined;
};

export const AppContext = createContext<AppContextType>({
Expand All @@ -20,9 +19,9 @@ export const AppContext = createContext<AppContextType>({
});

export const AppProvider = ({ children }: PropsWithChildren) => {
const [channel, setChannel] = useState<ChannelType<StreamChatGenerics> | undefined>(undefined);
const [channel, setChannel] = useState<ChannelType | undefined>(undefined);
const [thread, setThread] = useState<
ThreadContextValue<StreamChatGenerics>['thread'] | undefined
ThreadContextValue['thread'] | undefined
>(undefined);

return (
Expand Down
41 changes: 41 additions & 0 deletions examples/ExpoMessaging/custom-types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import {
DefaultAttachmentData,
DefaultChannelData,
DefaultCommandData,
DefaultEventData,
DefaultMemberData,
DefaultMessageData,
DefaultPollData,
DefaultPollOptionData,
DefaultReactionData,
DefaultThreadData,
DefaultUserData,
} from 'stream-chat-expo';

declare module 'stream-chat' {
/* eslint-disable @typescript-eslint/no-empty-object-type */

interface CustomAttachmentData extends DefaultAttachmentData {}

interface CustomChannelData extends DefaultChannelData {}

interface CustomCommandData extends DefaultCommandData {}

interface CustomEventData extends DefaultEventData {}

interface CustomMemberData extends DefaultMemberData {}

interface CustomUserData extends DefaultUserData {}

interface CustomMessageData extends DefaultMessageData {}

interface CustomPollOptionData extends DefaultPollOptionData {}

interface CustomPollData extends DefaultPollData {}

interface CustomReactionData extends DefaultReactionData {}

interface CustomThreadData extends DefaultThreadData {}

/* eslint-enable @typescript-eslint/no-empty-object-type */
}
5 changes: 4 additions & 1 deletion examples/ExpoMessaging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"expo-image-manipulator": "~13.0.6",
"expo-image-picker": "~16.0.6",
"expo-linking": "~7.0.5",
"expo-media-library": "~17.0.6",
"expo-router": "~4.0.17",
"expo-sharing": "~13.0.1",
"expo-splash-screen": "~0.29.22",
"expo-status-bar": "~2.0.1",
"expo-video": "^2.0.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-native": "0.77.1",
Expand All @@ -46,5 +46,8 @@
"@rnx-kit/metro-config": "^2.0.1",
"@rnx-kit/metro-resolver-symlinks": "^0.2.1"
},
"resolutions": {
"@types/react": "^19.0.0"
},
"private": true
}
23 changes: 0 additions & 23 deletions examples/ExpoMessaging/types.ts

This file was deleted.

Loading