import * as React from 'react'; import { StatusBar } from 'expo-status-bar'; import { Appbar, Menu } from 'react-native-paper'; import { useBoolean } from '@umijs/hooks'; import { Icon, Text, Button, Div } from 'react-native-magnus'; import useModel from 'flooks'; import words from '../flooks/Words'; import user from '../flooks/User'; export default function Header() { const { state, setTrue, setFalse } = useBoolean(false); const { setlocal, TlocationWord, TchangeToth, TchangeToChinese, local, } = useModel(words); const { logout } = useModel(user, []); const [location, setLocation] = React.useState(); console.log(location); function locationEvent() { getLocation().then((res) => { // console.log(res); setLocation(res); }); } return ( <> } > { setlocal(); }} title={local ? TchangeToChinese : TchangeToth} /> {}} title="版本06.28.1" /> ); }