28 lines
730 B
TypeScript
28 lines
730 B
TypeScript
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>
|
|
)
|
|
}
|
|
|