1.0.2 • Published 4 years ago

hippy-react-loop-text v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

hippy-text-loop-scroll-view hippy文字无限滚动组件

文字大于width宽度,将文字重复无限滚动展示。反之,则没有滚动 截图: 示例截图

安装

npm i hippy-react-loop-text

示例

引入之后就能使用了

    <TextLoopScrollView
        frontImageUrl={ICON_MESSAGE} //滚动栏前面的icon图片
        scrollWidth={200} // 滚动栏内容宽度
        message={`滚动的文字`}
        onClickHandler={() => {
            // 点击文案的回调函数
            console.log(`TextLoopScrollView click`)
        }}
    />

参数

ParameterDescriptionTypesDefaults
frontImageUrl滚动栏前面的icon图片地址string默认图片
scrollWidth滚动栏内容的宽度,如果为空则不展示number
message内容文本,如果为空则不展示string
onClickHandler内容文本点击回调函数function
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago