Skip to content

Instantly share code, notes, and snippets.

@AnjaneyuluBatta505
Created April 9, 2019 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnjaneyuluBatta505/b26addcdcb8415c02c628d7a31199175 to your computer and use it in GitHub Desktop.
Save AnjaneyuluBatta505/b26addcdcb8415c02c628d7a31199175 to your computer and use it in GitHub Desktop.
react js loading component
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