diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/common/TaggLoadingIndicator.tsx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/components/common/TaggLoadingIndicator.tsx b/src/components/common/TaggLoadingIndicator.tsx index dd1ae332..e518c926 100644 --- a/src/components/common/TaggLoadingIndicator.tsx +++ b/src/components/common/TaggLoadingIndicator.tsx @@ -9,15 +9,13 @@ interface TaggLoadingIndicatorProps { const TaggLoadingIndicator: React.FC<TaggLoadingIndicatorProps> = ({ fullscreen = false, }) => { - return fullscreen ? ( - <View style={[styles.fullscreen, styles.container, styles.horizontal]}> - <Image - source={require('../../assets/gifs/loading-animation.gif')} - style={styles.icon} - /> - </View> - ) : ( - <View style={[styles.container, styles.horizontal]}> + return ( + <View + style={[ + fullscreen ? styles.fullscreen : {}, + styles.container, + styles.horizontal, + ]}> <Image source={require('../../assets/gifs/loading-animation.gif')} style={styles.icon} |