Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
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.
@stockfit/react-native-marquee-any
Advanced tools
Readme
A pure JavaScript marquee component for react native. This package is inspired by react-native-marquee. Instead of limiting the children to text, it can animate any component you like.
To see a live demo of the package in action, click here: Expo Snack
npm install --save @stockfit/react-native-marquee-any
or
yarn add @stockfit/react-native-marquee-any
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import { Marquee } from "@stockfit/react-native-marquee-any";
export default class MarqueeTextSample extends Component {
render() {
return (
<View style={styles.container}>
<Marquee
style={{ fontSize: 24 }}
duration={3000}
marqueeOnStart
loop
marqueeDelay={1000}
marqueeResetDelay={1000}
>
Lorem Ipsum is simply dummy text of the printing and typesetting industry and typesetting industry.
</Marquee>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
});
Prop | Type | Optional | Default | Description |
---|---|---|---|---|
style | StyleObj | true | - | text style |
duration | number | true | 3000 | Number of milliseconds until animation finishes from start. |
loop | boolean | true | false | Set this true when animation repeats. |
marqueeOnStart | boolean | true | false | Set this true while waiting for new data from a refresh. |
marqueeResetDelay | number | true | 0 | Number of milliseconds to wait before resetting the marquee position after it finishes. |
marqueeDelay | number | true | 0 | Number of milliseconds to wait before starting or restarting marquee. |
onMarqueeComplete | function | true | - | Callback function for when the marquee completes its animation |
useNativeDriver | boolean | true | false | Set this truen if you want to use native driver |
easing | function | true | inOut | Easing function to define animation curve. |
These methods are optional, you can use the isOpen property instead
Prop | Params | Description |
---|---|---|
startAnimation | delay | Start animation |
stopAnimation | - | Stop animation |
Do you have any idea or want to change something? Just open an issue. Contributions are always welcome.
FAQs
A pure JavaScript marquee component for react native. This package is inspired by react-native-marquee. Instead of limiting the children to text, it can animate any component you like.
The npm package @stockfit/react-native-marquee-any receives a total of 0 weekly downloads. As such, @stockfit/react-native-marquee-any popularity was classified as not popular.
We found that @stockfit/react-native-marquee-any demonstrated a not healthy version release cadence and project activity because the last version was released 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.
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.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.