import Taro, { PureComponent } from '@tarojs/taro'
import {
StyleSheet,
View,
Text,
ActivityIndicator,
} from 'react-native';
export default class ActivityIndicatorDemo extends PureComponent {
render() {
const { loadingStatus = true, loadingColor = '#6495ED' } = this.props;
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center"
},
horizontal: {
flexDirection: "row",
justifyContent: "space-around",
padding: 10
}
});
return (
<View style={[styles.container, styles.horizontal]}>
<ActivityIndicator size="large" color={loadingColor} animating={loadingStatus} />
</View>
);
}
}