u
This commit is contained in:
1 parent
6277fb2f9e
commit
8ecac0d7dd
270 files changed
+40438
-529
No files matched your search
@@ -0,0 +1,40 @@
|
||||
import { useRouter } from 'expo-router'
|
||||
import { useState } from 'react'
|
||||
import { Text, TouchableOpacity, View } from 'react-native'
|
||||
import { AModal } from '@/components/common/ao'
|
||||
import CustomHeader from '@/components/custom/Header'
|
||||
import { useAppStore } from '@/store/app'
|
||||
|
||||
export default function Share() {
|
||||
const router = useRouter()
|
||||
const appStore = useAppStore()
|
||||
|
||||
const [showExitModal, setShowExitModal] = useState(false)
|
||||
|
||||
function exitLogin() {
|
||||
setShowExitModal(false)
|
||||
|
||||
appStore.reset()
|
||||
|
||||
router.replace('/auth')
|
||||
}
|
||||
|
||||
return (
|
||||
<View className="flex-1">
|
||||
<CustomHeader title="设置" />
|
||||
|
||||
<View className="flex-1">
|
||||
<TouchableOpacity
|
||||
className="w-full h-12 items-center justify-center bg-gray-100"
|
||||
style={{
|
||||
backgroundColor: '#d9d9db',
|
||||
}}
|
||||
onPress={() => exitLogin()}
|
||||
>
|
||||
<Text>退出登录</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
|
||||
</View>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user