import React, { useState } from 'react'; import { Text } from 'react-native'; import { Card, OptionGroup, Toast } from '@xrnjs/ui'; import styles from './style'; import { IconXStar1 } from '../../../icons'; const WithPrefixExample = () => { const [valuePrefix, setValuePrefix] = useState([]); const normalColor = '#181721'; const activeColor = '#F56A00'; const disabledColor = '#B3B2C2'; const optionsPrefix = [ { value: 2, label: 'Processing', prefix: ( ), }, { value: 3, label: 'Pending', prefix: , disabled: true, }, { value: 4, label: 'Sent', prefix: ( ), }, { value: 5, label: 'Bounced', prefix: ( ), }, { value: 6, label: 'Failed', prefix: ( ), }, ]; return ( 前缀配置-新增 { setValuePrefix(v); }} onDisabledPress={(v) => Toast({ position: 'middle', message: `${v.label} 不可操作提示`, forbidPress: true, }) } /> ); }; export default WithPrefixExample;