![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-native-hsnz-marquee
Advanced tools
A cross-platform marquee component for React Native.
This is a JavaScript-only implementation marquee. It's super customizable, allowing you to customize play direction,reapete number....
npm install react-native-hsnz-marquee --save
import React, { Component } from 'react';
import { Platform, Dimensions, StyleSheet, Text, View, ToastAndroid, Image } from 'react-native';
import HSNZ from 'react-native-hsnz-marquee'
export default class App extends Component {
constructor(props){
super(props);
this.end = this.end.bind(this);
}
end(){
console.log('end of play')
}
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>react native hsnz marque</Text>
<Text style={styles.instructions}>marquee module for react native</Text>
<Text style={styles.instructions}>{instructions}</Text>
<HSNZ
style={{height:150,width:250,backgroundColor:'#eee',borderWidth: 5}}
onEnd = {this.end}
>
<Text> look here! I am a greate marquee</Text>
<View style={{height:50,width:50 , backgroundColor: '#333',marginLeft:10}}></View>
</HSNZ>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
autoPlay
: boolean prop. when is true it will be start just after rendering but by false value it will waite until start method call. default is true.direction
string enum that get one of four these values: rtl
: for left to right paly direction , ltr
: for right to left play direction , ttb
: for top to bottom pay direction , btt
: for bottom to top play direction . default value is rtl
speed
: int value which determine marquee play speed defualt is 40loop
: positive int value which determine num of repeates of play. there is only one exception for unlimited play: by -1 value will play unlimited. defualt is -1.onEnd
: callback which call by end of end of the loops.<HSNZ
style={{height:150,width:250,backgroundColor:'#eee',borderWidth: 5}}
ref={(ref)=>{
this.reff = ref
}}
loop = {-1}
direction={"rtl"}
autoPlay = {true}
speed={20}
onEnd = {this.end}
>
<Text> look here! I am a greate marquee</Text>
<View style={{height:50,width:50 , backgroundColor: '#333',marginLeft:10}}></View>
</HSNZ>
start
: start playing marquee if not playing.
puase
: puase playing marquee which can resume again by start method and not calling onEnd callback.
stop
: stop playing marquee which can not resume again and call onEnd callback.
FAQs
react native module for marquee(scroll any component)
The npm package react-native-hsnz-marquee receives a total of 1 weekly downloads. As such, react-native-hsnz-marquee popularity was classified as not popular.
We found that react-native-hsnz-marquee 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.