You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
551 B
22 lines
551 B
import { useNavigation } from "@react-navigation/native";
|
|
import React, { useEffect } from "react";
|
|
import { GiftedChat } from "react-native-gifted-chat";
|
|
|
|
export default function ChatScreen() {
|
|
|
|
const navigation = useNavigation();
|
|
|
|
useEffect(() => {
|
|
navigation.getParent()?.setOptions({
|
|
tabBarStyle: {
|
|
display: "none"
|
|
}
|
|
});
|
|
return () => navigation.getParent()?.setOptions({
|
|
tabBarStyle: undefined
|
|
});
|
|
}, [navigation]);
|
|
return (
|
|
<GiftedChat />
|
|
)
|
|
} |