AppSettingScreen.jsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 Header from '../../components/Header';
  7. export default function AppSettingScreen() {
  8. return (
  9. <>
  10. <Header title="设置" />
  11. <ScrollView>
  12. <Div row bg="white" p={20} mt={10}>
  13. <Text fontSize="sm" textAlign="left" flex={1}>
  14. 登录密码
  15. </Text>
  16. <Text fontSize="sm" textAlign="left">
  17. 设置密码
  18. </Text>
  19. <Icon name="right" fontSize="xl" />
  20. </Div>
  21. <Div row bg="white" p={20} mt={10}>
  22. <Text fontSize="sm" textAlign="left" flex={1}>
  23. 版本号
  24. </Text>
  25. <Text fontSize="sm" textAlign="left">
  26. v{Application.nativeApplicationVersion}
  27. </Text>
  28. <Icon name="right" fontSize="xl" />
  29. </Div>
  30. <Button block bg="brand500" m={10} onPress={logout}>
  31. 退出登录
  32. </Button>
  33. </ScrollView>
  34. </>
  35. );
  36. }