Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListRow 可以包含较多标签吗 #2

Closed
cycbot opened this issue Mar 19, 2017 · 1 comment
Closed

ListRow 可以包含较多标签吗 #2

cycbot opened this issue Mar 19, 2017 · 1 comment

Comments

@cycbot
Copy link

cycbot commented Mar 19, 2017

比如多个Text

@rilyu
Copy link
Owner

rilyu commented Mar 20, 2017

可以的,不管是title, detail, icon, accessory支持传入PropTypes.element类型,多个Text使用View包裹即可,具体可参照BadgeExample里的实现:

        <ListRow title='Type capsule' detail={
          <View style={{flexDirection: 'row'}}>
            <Badge count={6} />
            <View style={{width: 4}} />
            <Badge count={68} />
            <View style={{width: 4}} />
            <Badge count={689} />
            <View style={{width: 4}} />
            <Badge count='new' />
          </View>
        } topSeparator='full' />

@rilyu rilyu closed this as completed Mar 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants