Files
rn-app1/app/(tabs)/mine.tsx

28 lines
730 B
TypeScript
Raw Normal View History

2025-11-06 16:32:15 +07:00
import { ThemedView } from "@/components/themed-view";
import { Text, TouchableOpacity } from "react-native";
import { useRouter } from "expo-router";
export default function MainScreen() {
const router = useRouter();
const handleWithdraw = () => {
router.push("/withdraw");
};
return (
<ThemedView style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<TouchableOpacity
onPress={handleWithdraw}
style={{
backgroundColor: "#007AFF",
paddingVertical: 10,
paddingHorizontal: 20,
borderRadius: 8,
}}
>
<Text style={{ color: "#fff", fontSize: 16 }}></Text>
</TouchableOpacity>
</ThemedView>
)
}