import React from 'react'; import { Text } from 'react-native'; import { Checkbox, Space, Toast } from '@xrnjs/ui'; import { IconMANotice1, IconMANotice2 } from '../../../icons'; import Card from '_global/Card'; import styles from './style'; import CustomerIcon from './CustomerIcon'; const onDisabledPress = (v: any) => Toast({ position: 'middle', message: `${v?.label || v} 不可操作提示`, forbidPress: true, }); const CustomIcon: React.FC = () => { const [customValue, setCustomValue] = React.useState(false); return ( 自定义图标 } /> } onDisabledPress={() => onDisabledPress('自定义复选框(禁用)')} /> } onDisabledPress={() => onDisabledPress('自定义复选框(默认选中且禁用)') } /> active ? : } /> active ? ( ) : ( ) } /> ); }; export default CustomIcon;