`
const RenderLoadingView = () => {
return (
<AnimatedLoader
visible={true}
overlayColor="rgba(0,0,0,0.75)"
source={require("./loading3.json")}
animationStyle={styles.lottie}
speed={1}
/>
);
};
const styles = StyleSheet.create({
lottie: {
width: 200,
height: 200
},
spinnerContainer: {
flex: 1,
marginTop:30,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F1F1F1',
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
},
});
export default RenderLoadingView;
`
/////////////////////////////////////////////////////////////////////////////////////////////////
render = () => { if (this.state.isVisible) return (<RenderLoadingView/>); return this.renderSahisPaydasIsletmeEkle(); }
I did a component. When ฤฑ call it , i works nicely. But if my operation take long time, I want press back button in android and Back function doesn't work.
Before this library, I use react-native-spinkit an I did press back button and it worked.
It was like this:
<Spinner isVisible={isVisible} type={type} size={size} />
Please Help Me :)