Skip to content

Commit

Permalink
fix(loading-container): make correct center align (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored and Houssein Djirdeh committed Sep 28, 2017
1 parent 90250a8 commit cb5be2c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/loading-indicators/loading-container.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,15 @@ const styles = StyleSheet.create({
center: {
justifyContent: 'center',
},
loadingIcon: {
height: 80,
},
text: {
paddingTop: 20,
...fonts.fontPrimary,
},
});

export const LoadingContainer = ({ animating, text, center }: Props) =>
<View style={[styles.loadingContainer, center && styles.center]}>
<ActivityIndicator
animating={animating}
style={styles.loadingIcon}
size="large"
/>
<ActivityIndicator animating={animating} size="large" />
{text &&
<Text style={styles.text}>
{text}
Expand Down

0 comments on commit cb5be2c

Please sign in to comment.