Created
April 9, 2019 05:38
-
-
Save AnjaneyuluBatta505/b26addcdcb8415c02c628d7a31199175 to your computer and use it in GitHub Desktop.
react js loading component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import { ActivityIndicator, View } from "react-native"; | |
import {StyleSheet} from 'react-native' | |
const styles = StyleSheet.create({ | |
loading: { | |
flex: 1, | |
flexDirection: "row", | |
alignItems: 'center' | |
}, | |
}) | |
export default class Loading extends Component { | |
render() { | |
return ( | |
<View style={styles.loading}> | |
<ActivityIndicator | |
size="large" | |
color="#0000ff" | |
style={{flex: 1, alignSelf: "center" }} | |
/> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment