import React from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; import { Button, Card, Fill, Space, Type } from '@xrnjs/ui'; import { styles } from './style'; const ActionCardDemo = () => { const handleHeaderPress = () => { console.log('Header pressed'); }; const handleButtonPress = () => { console.log('Button pressed'); }; return ( console.log('Extra pressed')}> 更多 } onPressHeader={handleHeaderPress} bodyPadding={{ top: 8, bottom: 8, left: 16, right: 16 }} > 点击头部区域可以触发 onPressHeader 回调,右上角有额外的操作区域。 确定 } bodyPadding={{ top: 8, bottom: 8, left: 16, right: 16 }} > 这个卡片在底部有一个操作按钮,可以用于确认或其他操作。 } extra={ 编辑 } footer={ } bodyPadding={{ top: 8, bottom: 8, left: 16, right: 16 }} > 这个卡片展示了左侧标识、右侧操作和底部多按钮的组合使用。 ); }; export default ActionCardDemo;