import React from 'react'; import { View, Text } from 'react-native'; import { Popover, Button, Space } from '@xrnjs/ui'; import Card from '_global/Card'; import styles from './style'; const ThemeUsage: React.FC = () => { const handleSelect = (value: any, index?: number) => { console.log(`选择了第 ${index} 个选项:`, value); }; const menuActions = [ { text: '新建文档' }, { text: '编辑' }, { text: '删除', color: '#ff4d4f' }, ]; return ( 支持深色和浅色两种主题模式,可根据应用场景选择 } onSelect={handleSelect} statusBarTranslucent={false} > } onSelect={handleSelect} statusBarTranslucent={false} > ); }; export default ThemeUsage;