This commit is contained in:
oneao committed 2025-11-11 22:31:33 +08:00
1 parent 7971c527af
commit b8a6b15355
27 files changed
+480 -399

No files matched your search

@@ -1,15 +1,28 @@
import { ScrollView, Text, View } from 'react-native'
import { ScrollView, Text } from 'react-native'
import { AButton } from '@/components/common/ao'
import { useUserStore } from '@/store/user'
export default function Chat() {
const userStore = useUserStore()
return (
<ScrollView contentContainerStyle={{ padding: 16 }}>
{Array.from({ length: 50 }).map((_, i) => (
<Text key={i} style={{ marginBottom: 10, fontSize: 16 }}>
Chat message
{' '}
{i + 1}
</Text>
))}
<ScrollView contentContainerStyle={{ padding: 16, marginTop: 22 }}>
<AButton
onPress={() => {
userStore.setUserInfo({
...(userStore.userInfo as any),
token: `test-token-${Date.now()}`,
})
}}
>
测试
</AButton>
<Text style={{ marginTop: 12 }}>
当前 token:
{' '}
{userStore.userInfo?.token ?? '(无)'}
</Text>
</ScrollView>
)
}