Gathering detailed insights and metrics for horizantal-marquee-view
Gathering detailed insights and metrics for horizantal-marquee-view
Gathering detailed insights and metrics for horizantal-marquee-view
Gathering detailed insights and metrics for horizantal-marquee-view
npm install horizantal-marquee-view
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
1 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Oct 16, 2019
Latest Version
1.0.0
Package Id
horizantal-marquee-view@1.0.0
Unpacked Size
7.85 kB
Size
2.77 kB
File Count
3
NPM Version
6.11.3
Node Version
12.12.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
A react-native horizantal marquee text component.
If you need a vertical marquee text, please use vertical-marquee-view.
Skip this part, go to #Install
I needed a marquee text in one of my recent project and I didn't find a good one online, so I decided to create my own marquee text component.
I intended to make it work well on both iOS and Android, still there remains one thing in iOS which I cannot fix. I found that in iOS, when you use View
component to wrap child components and don't explicitly set the parent View
component width (e.g. use flex
), the parent View
component will have the same width as it's child.
It becomes a problem in this custom component because I use a child View
component to wrap Text
component in order to make the text expand and show in one line. I set the text containner View
component size to be bigger than the Text
so that it will not have multiple lines nor have the overflow text replaced by ellipsis. The default value of text container width is 1000, which is usually larger than the actual label width. This results in the problem mentioned above, the wrapper View
width becomes 1000 also.
1<View class="marquee-label"> 2 <View class="marquee-label-text-container"> 3 <Text class="marquee-label-text">{text}</Text> 4 </View> 5</View>
Note:
width
or flex
to layout the view.width
to layout the view. flex
layout is not supported.1npm install --save horizantal-marquee-view
1import HorizantalMarqueeText from 'horizantal-marquee-view';
1<HorizantalMarqueeText 2 duration={8000} 3 text={'This is a Marquee Label.'} 4 textStyle={{ fontSize: 13, color: 'white' }} 5/>
or
1<HorizantalMarqueeText 2 speed={250} 3 textStyle={{ fontSize: 13, color: 'white' }} 4> 5 This is a Marquee Label. 6</HorizantalMarqueeText>
children
: string, the text to show in the marquee. Alternative to text
.text
: string, the text to show in the marquee. Alternative to children
.duration
: number(unit: millisecond), the duration for the marquee to run one round. e.g. 6000 (for 6 seconds a round). Alternative to speed
.speed
: number(unit: px/s, px per second), the speed of the marquee. Alternative to duration
.bgViewStyle
: stylesheet object, background view component custom styles.textStyle
: stylesheet object, text component custom styles.textContainerWidth
: number, text container component width. If the text is not shown in one line, increase this value.textContainerHeight
: number, text container component height. If the text is not shown in one line, increase this value.textContainerStyle
: stylesheet object, not recommended to use, text containner component custom style.Version 1.0.0
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
no SAST tool detected
Details
Reason
Found 0/1 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More