feat: tabs调整
This commit is contained in:
28
app/(tabs)/mine.tsx
Normal file
28
app/(tabs)/mine.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user