/** * title: 带文字的分割线 * desc: 可以在分割线中间插入文字,通过 contentPosition 属性设置文字位置。 */ import React from 'react'; import { Text } from 'react-native'; import { Divider, Space, Card } from '@xrnjs/ui'; import { styles } from './style'; const WithText: React.FC = () => { return ( 居中文字 上方内容 分割线文字 下方内容 左侧文字 上方内容 左侧文字 下方内容 右侧文字 上方内容 右侧文字 下方内容 自定义文字样式 上方内容 自定义样式文字 下方内容 ); }; export default WithText;