import React from "react"; import { View, Text, StyleSheet, TouchableOpacity } from "react-native"; import { useNavigation } from "@react-navigation/native"; import { NativeStackNavigationProp } from "@react-navigation/native-stack"; import { RootStackParamList } from "../../App"; type ChatScreenNavigationProp = NativeStackNavigationProp< RootStackParamList, "MainTabs" >; export const ChatScreen = () => { const navigation = useNavigation(); return ( Chat Screen navigation.navigate("Balance")} > 查看余额 Chat Screen 运费计算 ); }; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgroundColor: "#fff", }, text: { fontSize: 19, color: "#333", marginBottom: 20, }, button: { backgroundColor: "#0066FF", paddingHorizontal: 20, paddingVertical: 10, borderRadius: 8, }, buttonText: { color: "#fff", fontSize: 16, fontWeight: "600", }, });