import React, { useState } from 'react'; import { Text } from 'react-native'; import { Space, Select } from '@xrnjs/ui'; import Card from '_global/Card'; import { styles } from './style'; const options = [ { label: '选项一', value: 'option1' }, { label: '选项二', value: 'option2' }, { label: '选项三', value: 'option3' }, ]; const SizeVariantsExample = () => { const [visible, setVisible] = useState(false); const [value, setValue] = useState(); const onChange = (selectedValue: string | string[]) => { setValue(selectedValue as string); setVisible(false); }; const selectedOption = options.find((opt) => opt.value === value); return ( 不同尺寸