kyo504 / react-native-marquee Goto Github PK
View Code? Open in Web Editor NEWReact Native Marquee Text Component
License: MIT License
React Native Marquee Text Component
License: MIT License
can you please add marquee for image
can you please add marquee for image like that of text
I faced the problem when the text fits in container width. In that case I want the text just align on center by {textAlign: 'center'}
. However this.setState({ animating: true });
is called even before this.calculateMetrics();
thus the static text with center aligned opacity is set to 0
and show ScrollView instead.
My proposal is to return promise from calculateMetrics
, and instead of setTimeout
we can chain then()
to control what happens after.
this.setTimeout(() => {
this.calculateMetrics();
if (!this.contentFits) {
Animated.timing(this.animatedValue, {
toValue: -this.distance,
duration: duration,
easing: easing,
useNativeDriver,
}).start(({ finished }) => {
if (finished) {
if (loop) {
this.resetAnimation();
} else {
this.stop();
onMarqueeComplete();
}
}
});
}
}, 100);
I tried implementing this but not yet success, any help would be grateful.
The title is clearly. when I set app layout direction to RTL (using I18nManager.forceRTL(true)
), animations not working.
Hii
How can i do the number of times the text will loop and then stop? after a certain number of times loop want to stop loop
Hi
How I can use the text like the html marquee infinity loop? actually the text restart from de begin, i want in the end of the text its start again like be concat with the same text
Ellipsis doesn't work on Android
It would appear that the easing options that go in reverse (inOut or back) result in an exception.
vertical not supported?
Whatever I set it always imediately reset after animation finished. I used your code snippet in README.
We use this lib in our project, and everything works fine for iOS. However, on Android the text doesn't move at all. Well, it moves, but with a huge delay, even if I set marqueeDelay
to 0. I think when there is a big number of marquee texts rendered, they start to behave this weird way.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.