AppSettingScreen.jsx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import * as WebBrowser from 'expo-web-browser';
  2. import * as React from 'react';
  3. import * as Application from 'expo-application';
  4. import { Div, Button, Image, Text, Avatar, Icon } from 'react-native-magnus';
  5. import { ScrollView } from 'react-native-gesture-handler';
  6. import useModel from 'flooks';
  7. import User from '../../flooks/User';
  8. import Header from '../../components/Header';
  9. export default function AppSettingScreen() {
  10. const { logout } = useModel(User, []);
  11. return (
  12. <>
  13. <Header title="设置" />
  14. <ScrollView>
  15. <Div row bg="white" p={20} mt={10}>
  16. <Text fontSize="sm" textAlign="left" flex={1}>
  17. 登录密码
  18. </Text>
  19. <Text fontSize="sm" textAlign="left">
  20. 设置密码
  21. </Text>
  22. <Icon name="right" fontSize="xl" />
  23. </Div>
  24. <Div row bg="white" p={20} mt={10}>
  25. <Text fontSize="sm" textAlign="left" flex={1}>
  26. 版本号
  27. </Text>
  28. <Text fontSize="sm" textAlign="left">
  29. v{Application.nativeApplicationVersion}
  30. </Text>
  31. <Icon name="right" fontSize="xl" />
  32. </Div>
  33. <Button block bg="brand500" m={10} onPress={logout}>
  34. 退出登录
  35. </Button>
  36. </ScrollView>
  37. </>
  38. );
  39. }