Skip to content

Commit 2eb9c02

Browse files
authored
Merge pull request #3170 from GetStream/fix/expo-app-thread-in-channel
fix: add thread prop in channel component in channel screen to sync state
2 parents eed3870 + 249c337 commit 2eb9c02

File tree

1 file changed

+2
-1
lines changed
  • examples/ExpoMessaging/app/channel/[cid]

1 file changed

+2
-1
lines changed

examples/ExpoMessaging/app/channel/[cid]/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useHeaderHeight } from '@react-navigation/elements';
88

99
export default function ChannelScreen() {
1010
const router = useRouter();
11-
const { setThread, channel } = useContext(AppContext);
11+
const { setThread, channel, thread } = useContext(AppContext);
1212
const headerHeight = useHeaderHeight();
1313

1414
if (!channel) {
@@ -23,6 +23,7 @@ export default function ChannelScreen() {
2323
audioRecordingEnabled={true}
2424
channel={channel}
2525
keyboardVerticalOffset={headerHeight}
26+
thread={thread}
2627
>
2728
<View style={{ flex: 1 }}>
2829
<MessageList

0 commit comments

Comments
 (0)