Skip to content

Commit 2d6da3f

Browse files
authored
fix: add thread prop in channel component in channel screen to sync state in expo app (#3171)
1 parent 093ab8a commit 2d6da3f

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 { setTopInset } = useAttachmentPickerContext();
1313
const headerHeight = useHeaderHeight();
1414

@@ -28,6 +28,7 @@ export default function ChannelScreen() {
2828
audioRecordingEnabled={true}
2929
channel={channel}
3030
keyboardVerticalOffset={headerHeight}
31+
thread={thread}
3132
>
3233
<View style={{ flex: 1 }}>
3334
<MessageList

0 commit comments

Comments
 (0)