Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
react-native-marquee-easy
Advanced tools
Readme
使用react native实现一个跨端的跑马灯轮播组件。
type IProps = {
direction?: 'horizontal' | 'vertical';
delay?: number;
iterations?: number;
itemDurations?: number;
containerStyle?: ViewStyle;
onFinished?: () => void;
children: any;
type?: 'swipe' | 'normal';
swiperItemDurations?: number;
};
import {Marquee} from 'react-native-marquee-easy'
<Marquee
itemDurations={2000}
containerStyle={styles.cStyle}
iterations={count}
onFinished={() => {
console.log("test finished ani");
}}
>
<View style={{ backgroundColor: "green" }}>
<Text style={styles.text}>aaaaa</Text>
</View>
<View style={styles.item}>
<Text style={styles.text}>bbbbbbb</Text>
</View>
<View style={{ backgroundColor: "pink" }}>
<Text style={styles.text}>cccccccccc</Text>
</View>
</Marquee>
使用简单 纯js实现不依赖任何第三方库
支持水平垂直两个方向
支持文字&view
两种模式
4. 当滚动到最后一项时 再将动画重置为初始状态 因为第一项和最后一项相同 所以视图不会刷新 实现无限滚动。
github:react-native-marquee-easy
FAQs
![swipe.gif](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/3172a2645ef84e9d841e5fc8b1156b58~tplv-k3u1fbpfcp-jj-mark:0:0:0:0:q75.image#?w=590&h=190&s=336401&e=gif&f=237&b=fcfbff)
The npm package react-native-marquee-easy receives a total of 1 weekly downloads. As such, react-native-marquee-easy popularity was classified as not popular.
We found that react-native-marquee-easy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.