import React from 'react'; import { Text } from 'react-native'; import { Checkbox, Space, Toast } from '@xrnjs/ui'; import Card from '_global/Card'; import styles from './style'; const onDisabledPress = (v: any) => Toast({ position: 'middle', message: `${v?.label || v} 不可操作提示`, forbidPress: true, }); const BasicUsage: React.FC = () => { const [checked, setChecked] = React.useState(false); const [value, setValue] = React.useState(); return ( 基础用法 onDisabledPress('禁用状态')} /> onDisabledPress('禁用且选中')} /> ); }; export default BasicUsage;