Skip to content

Commit aa3c6d1

Browse files
committed
fix: expo app keyboardVerticalOffset
1 parent c918d04 commit aa3c6d1

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useContext } from 'react';
2-
import { StyleSheet, View } from 'react-native';
2+
import { Platform, StyleSheet, View } from 'react-native';
33
import { Channel, Thread } from 'stream-chat-expo';
44
import { Stack } from 'expo-router';
55
import { AppContext } from '../../../../../context/AppContext';
@@ -18,26 +18,17 @@ export default function ThreadScreen() {
1818
<Channel
1919
audioRecordingEnabled={true}
2020
channel={channel}
21-
keyboardVerticalOffset={headerHeight}
21+
keyboardVerticalOffset={Platform.OS === 'ios' ? headerHeight : undefined}
2222
thread={thread}
2323
threadList
2424
>
2525
<Stack.Screen options={{ title: 'Thread Screen' }} />
2626

27-
<SafeAreaView edges={['bottom']} style={styles.container}>
2827
<Thread
2928
onThreadDismount={() => {
3029
setThread(undefined);
3130
}}
3231
/>
33-
</SafeAreaView>
3432
</Channel>
3533
);
3634
}
37-
38-
const styles = StyleSheet.create({
39-
container: {
40-
flex: 1,
41-
justifyContent: 'flex-start',
42-
},
43-
});

examples/ExpoMessaging/yarn.lock

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6037,22 +6037,7 @@ stream-chat-react-native-core@8.1.0:
60376037
version "0.0.0"
60386038
uid ""
60396039

6040-
stream-chat@^9.35.1:
6041-
version "9.35.1"
6042-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.35.1.tgz#d828854a9c27ea7e45e6642d9107966c6606f552"
6043-
integrity sha512-649sgO7+llFuW+y/Ja0K4d94aUC+EMxYUVo5mq5AFGT86vUAIXmRIMVHYHA/jw4MYoqfWAFrDK6L9Rhyn/eMkQ==
6044-
dependencies:
6045-
"@types/jsonwebtoken" "^9.0.8"
6046-
"@types/ws" "^8.5.14"
6047-
axios "^1.12.2"
6048-
base64-js "^1.5.1"
6049-
form-data "^4.0.4"
6050-
isomorphic-ws "^5.0.0"
6051-
jsonwebtoken "^9.0.3"
6052-
linkifyjs "^4.3.2"
6053-
ws "^8.18.1"
6054-
6055-
stream-chat@^9.9.0:
6040+
stream-chat@^9.36.0, stream-chat@^9.9.0:
60566041
version "9.36.0"
60576042
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-9.36.0.tgz#154e0d6bdf8b15e97a6d9718c655d2ede34f6f25"
60586043
integrity sha512-D1b5THI4UbnvsEcJyUv1tUIgK6lCYT+aStrV+87mdrM9owX+WUpKaWFkxz/Ug+DOrJtTazvfuzvpJMyDi82NXA==

0 commit comments

Comments
 (0)