Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor() {
super();
this.state = { slideLeft: new Animated.Value(-1024), fadeIn: new Animated.Value(0)};
}
fontSize: 0.8,
layoutOrigin: [0.5, 0.5],
paddingLeft: 0.2,
paddingRight: 0.2,
textAlign: 'center',
textAlignVertical: 'center',
transform: [{translate: [0, 0, -3]}],
}}>
hello
);
}
}
AppRegistry.registerComponent('End2End', () => End2End);
componentDidMount() {
Animated.timing(this.state.y, {
duration: 150000,
toValue: 10,
delay: 4500,
easing: Easing.linear,
}).start();
Animated.timing(this.state.opacity, {
duration: 3000,
toValue: 1,
delay: 9500,
easing: Easing.linear,
}).start();
}
componentDidMount() {
Animated.timing(this.state.opacity, {
duration: 1000,
toValue: 1,
delay: 1000,
easing: Easing.linear,
}).start();
window.setTimeout(() => {
Animated.timing(this.state.opacity, {
duration: 1000,
toValue: 0,
}).start();
}, 6000);
}
scrollRight() {
Animated.timing(
this.state.scrollValue,
{
toValue: -this.offsetX,
duration: this.duration,
easing: Easing.linear,
}
).start();
}
rotateGallery(rotation){
const animation = Animated.timing(this.state.galleryRotation, {
toValue: rotation,
duration: 150
});
animation.start();
}
getPosition(images, imageNumber){
rotateGallery(rotation){
const animation = Animated.timing(this.state.galleryRotation, {
toValue: rotation,
duration: 150
});
animation.start();
}
getPosition(images, imageNumber){
render() {
const controllers = this.state.controllers === null
?
: ;
return (
);
}
}
render() {
return (
);
}
}
render() {
return (
);
}
}