/** * title: 交互功能 * desc: 展示带有按钮和交互功能的错误块 */ import React from 'react'; import { ScrollView, Alert } from 'react-native'; import { ErrorBlock, Space } from '@xrnjs/ui'; import Card from '_global/Card'; const InteractiveUsage: React.FC = () => { const handleRefresh = () => { Alert.alert('提示', '刷新操作'); }; const handleRetry = () => { Alert.alert('提示', '重试操作'); }; const handleContact = () => { Alert.alert('提示', '联系客服'); }; const handleLogin = () => { Alert.alert('提示', '前往登录'); }; const handleSecondary = () => { Alert.alert('提示', '次要操作'); }; return ( ); }; export default InteractiveUsage;