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

文字大小和行高 #272

Closed
musicode opened this issue Feb 26, 2018 · 9 comments
Closed

文字大小和行高 #272

musicode opened this issue Feb 26, 2018 · 9 comments

Comments

@musicode
Copy link

对于消息气泡中的文字和输入框中的文字,是否可添加以下三项配置呢?

  • textSize
  • textColor
  • textLineHeight

此外,输入框是否可配置 padding 呢

@KenChoi1992
Copy link
Contributor

@musicode textLineHeight 没有这个属性

@musicode
Copy link
Author

@KenChoi1992 android 有没有调整行间距的属性呢?

@KenChoi1992
Copy link
Contributor

可以调整行间距

@musicode
Copy link
Author

@KenChoi1992 因为前端的命名通常叫 lineHeight,所以暴露给 RN 的是否可以叫做 textLineHeight 呢?

@KenChoi1992
Copy link
Contributor

@musicode 可以查看稍后发布的版本对应的 API doc

@musicode
Copy link
Author

文本还涉及 timeString,现在已有三项配置:

  • dateTextSize
  • dateTextColor
  • datePadding

是否可添加圆角和背景色配置项呢,这样就能实现微信的效果了。

@musicode
Copy link
Author

最后,用户名是否可以添加以下两项配置

  • textSize
  • textColor

此外,是否可自定义间距,比如用户名和内容,以及用户名和头像之间的距离

@musicode
Copy link
Author

musicode commented Feb 27, 2018

刚又看到一个

eventMsgTxtColor: PropTypes.string,
eventMsgTxtPadding: PropTypes.number,
eventMsgTxtSize: PropTypes.number,

是否可以同样加 lineHeight 呢,因为会有换行的场景

更新:

是否可添加圆角和背景色配置项呢?

@KenChoi1992
Copy link
Contributor

已更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants