import React, { useState } from 'react'; import { Text } from 'react-native'; import { Card, OptionGroup } from '@xrnjs/ui'; import styles from './style'; const options = new Array(9).fill(0).map((_, index) => ({ value: index + 1, label: `选项${index + 1}`, })); const SingleSelectExample = () => { const [value1, setValue1] = useState(); return ( 等距:单选 { setValue1(v as number); }} scrollable /> ); }; export default SingleSelectExample;