diff --git a/.changeset/lemon-guests-explain.md b/.changeset/lemon-guests-explain.md new file mode 100644 index 0000000000..1ae1c9417b --- /dev/null +++ b/.changeset/lemon-guests-explain.md @@ -0,0 +1,5 @@ +--- +'@td-design/react-native': patch +--- + +fix: 修复 list-item 组件的样式问题 diff --git a/packages/react-native/src/list-item/index.tsx b/packages/react-native/src/list-item/index.tsx index b65b651192..340e229385 100644 --- a/packages/react-native/src/list-item/index.tsx +++ b/packages/react-native/src/list-item/index.tsx @@ -166,25 +166,23 @@ const Content = ({ style={[{ backgroundColor }, style]} > - - - - {required && ( - - * - - )} - {thumb} - {Title} - - - {Extra} - + + + {required && ( + + * + + )} + {thumb} + {Title} - {!!brief && {brief}} - + + {Extra} + + {Arrow} + {!!brief && {brief}} ); }; diff --git a/packages/react-native/src/list/index.tsx b/packages/react-native/src/list/index.tsx index da37fef16a..166417e7f3 100644 --- a/packages/react-native/src/list/index.tsx +++ b/packages/react-native/src/list/index.tsx @@ -34,7 +34,9 @@ const List: FC = ({ header, extra, itemBackgroundColor, itemStyle, it {Header} {items.map((props, index) => { - return ; + return ( + + ); })} );