We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js version: v16.16.0
Actual behaviour Animation does not work with overlay intermittently
Expected behaviour Animation should load all the time when this component is rendered
Code to reproduce
import React, { Component } from 'react'; import { Text, View, StyleSheet, Animated, Easing } from 'react-native'; import Spinner from 'react-native-loading-spinner-overlay'; import Animation from 'lottie-react-native'; import { Images } from '../../res';
const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', textAlign: 'center', bottom: 100, backgroundColor: '#ecf0f1', width: '100%', height: '100%', }, lottieStyle: { width: '100%', height: '100%', flexDirection: 'column', alignItems: 'flex-start', }, }); export default class Spinner extends Component { constructor(props) { super(props); this.state = { progress: new Animated.Value(0), }; } SpinnerLoaderView = () => { const { loading = true, } = this.props;
if (loading) { return ( <View style={{ backgroundColor: '#ecf0f1' }}> <Spinner > <View style={styles.lottieStyle}> <Animation progress={this.state.progress} source={Images.newLoader} ref={(animation) => { if (animation) animation.play(); }} loop /> </Spinner> </View> ); }
}; render() { return ( <> {this.SpinnerLoaderView()} </>
);
} }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Node.js version: v16.16.0
Actual behaviour
Animation does not work with overlay intermittently
Expected behaviour
Animation should load all the time when this component is rendered
Code to reproduce
import React, { Component } from 'react';
import { Text, View, StyleSheet, Animated, Easing } from 'react-native';
import Spinner from 'react-native-loading-spinner-overlay';
import Animation from 'lottie-react-native';
import { Images } from '../../res';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
textAlign: 'center',
bottom: 100,
backgroundColor: '#ecf0f1',
width: '100%',
height: '100%',
},
lottieStyle: {
width: '100%',
height: '100%',
flexDirection: 'column',
alignItems: 'flex-start',
},
});
export default class Spinner extends Component {
constructor(props) {
super(props);
this.state = {
progress: new Animated.Value(0),
};
}
SpinnerLoaderView = () => {
const {
loading = true,
} = this.props;
};
render() {
return (
<>
{this.SpinnerLoaderView()}
</>
}
}
Checklist
The text was updated successfully, but these errors were encountered: