import React, { useState } from 'react'; import { Text } from 'react-native'; import { Button, Card, Fill, Space, Type } from '@xrnjs/ui'; import { styles } from './style'; const LoadingDemo = () => { const [loading, setLoading] = useState(false); const handleToggleLoading = () => { setLoading(true); setTimeout(() => { setLoading(false); }, 2000); }; return ( {loading ? '正在加载内容...' : '内容加载完成!这是卡片的实际内容。'} ); }; export default LoadingDemo;