react-native-lahk-marquee-label-vertical icon indicating copy to clipboard operation
react-native-lahk-marquee-label-vertical copied to clipboard

不能变换文字吗?

Open yuyongmao opened this issue 7 years ago • 6 comments

像是淘宝京东类似的控件,每次都会显示不同的内容,滚动循环显示

yuyongmao avatar Apr 25 '17 06:04 yuyongmao

你可以试一试传入多行文字,用换行符“\n”隔开。

<MarqueeLabelVertical
  duration={8000}
  text={'第一行内容。\n第二行内容。\n第三行内容。'}
  textStyle={{ fontSize: 13, color: 'white' }}
/>

这个组件和京东类似组件的目标展示效果是不一样的。 可以自行尝试一下实现京东类似组件的效果,也欢迎一起讨论。

cheng-kang avatar Apr 26 '17 12:04 cheng-kang

1.1.0 版本中添加了动态文字支持,虽然还是没有直接符合你需求的功能,但是现在可以通过根据跑马灯速度设置一个定时更换文字内容的计时器,这样也可以达到每次显示不同内容的效果。

cheng-kang avatar Aug 22 '17 13:08 cheng-kang

能变换文字就更好了.

jzm369 avatar Sep 05 '17 02:09 jzm369

@jzm369 能具体描述一下需求吗?我近期也有打算把这个组件功能更丰富一下。

cheng-kang avatar Sep 06 '17 03:09 cheng-kang

您好。最好能够实现每个标题都是独立的Text,,这样如果某个标题太长换行现象,,而且最好也可以支持设置标题停几秒换标题,,有的不想滚动的。。像手机版京东或者淘宝那样。。谢谢

------------------ 原始邮件 ------------------ 发件人: "cAnt"[email protected]; 发送时间: 2017年9月6日(星期三) 中午11:32 收件人: "cheng-kang/react-native-lahk-marquee-label-vertical"[email protected]; 抄送: "ㄚòひ微笑Кě吣鲤"[email protected]; "Mention"[email protected]; 主题: Re: [cheng-kang/react-native-lahk-marquee-label-vertical] 不能变换文字吗? (#1)

@jzm369 能具体描述一下需求吗?我近期也有打算把这个组件功能更丰富一下。

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

jzm369 avatar Sep 06 '17 03:09 jzm369

我觉得最好写一个例子出来 不然仅仅看文档,并不能知道你这个东西是怎么用的

chimeiwang avatar Jun 07 '18 08:06 chimeiwang