Skip to content

Commit

Permalink
Simplify spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
narin committed Jun 6, 2024
1 parent debdf15 commit b9c0920
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,14 @@ export const LoadingIndicator: React.FC<LoadingIndicatorProps> = ({
<Animated.View style={indicatorStyle}>
<Icon {...iconProps} />
</Animated.View>
<Spacer />
{text && (
<>
<Spacer />
<Text style={textStyle} accessibilityLabel={a11yLabel}>
{text}
</Text>
</>
)}
{children && (
<>
<Spacer />
{children}
</>
<Text style={textStyle} accessibilityLabel={a11yLabel}>
{text}
</Text>
)}
{text && children ? <Spacer /> : null}
{children}
</View>
)
}

0 comments on commit b9c0920

Please sign in to comment.