import * as WebBrowser from 'expo-web-browser'
import * as React from 'react'
import { Avatar } from 'react-native-paper'
import { Flex } from '@ant-design/react-native'
import useModel from 'flooks'
import { useMount } from '@umijs/hooks'
import user from '../flooks/User'

const splash = require('../assets/images/splash.png')

export default function LinksScreen() {
  //   const { data, error, loading } = useRequest('/user/my')
  const { getUser } = useModel(user, [])
  useMount(() => {
    getUser()
  })
  return (
    <Flex justify="center" style={{ flex: 1, backgroundColor: '#FFC21C' }}>
      <Avatar.Image size={80} source={splash} />
    </Flex>
  )
}
