Keyboard avoiding view not setting the right height #4660
-
I have a problem where, only on android, when i click in the message input, it will push the input way to high and then as soon as i start to type, it readjusts and is at the correct height for the keyboard. Here is the chat code. `import "react-native-gesture-handler"; import React, { useState, useContext, useEffect } from "react"; import { ChatContext } from "../../contexts/ChatContext"; const client = StreamChat.getInstance(api-key); const ChatScreen = () => { const headerHeight = useHeaderHeight(); useEffect(() => { const clearChannel = () => { useEffect(() => { const theme = { useEffect(() => { const getUserData = async () => { useEffect(() => { const CustomPreviewTitle = ({ channel }) => { const openChatContact = () => { const filters = { members: { $in: [auth.currentUser.uid] } }; return (
); export default ChatScreen; const styles = StyleSheet.create({
}, Here is the header component `import { StyleSheet, Text, View, Pressable } from "react-native"; import { getDocs, query, where, collection } from "firebase/firestore"; import { LikesContext } from "../../contexts/LikesContext"; const client = StreamChat.getInstance("2gayu2kzmu3r"); const Header = (props) => { const navigation = useNavigation(); const openLikes = () => { return ( export default Header; const styles = StyleSheet.create({
}, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there @EvanAndersen ! This is not an Android SDK issue, it seems to be related to our React Native SDK. I'll close it here, can you please reopen in the RN repository. Thank you! |
Beta Was this translation helpful? Give feedback.
Hey there @EvanAndersen !
This is not an Android SDK issue, it seems to be related to our React Native SDK.
I'll close it here, can you please reopen in the RN repository.
Thank you!