Skip to content

Commit b7fd437

Browse files
committed
fix: network down spinner was invisible in sample app
1 parent 91162ef commit b7fd437

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/SampleApp/src/components/NetworkDownIndicator.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ const styles = StyleSheet.create({
88
flexDirection: 'row',
99
},
1010
networkDownText: {
11-
marginLeft: 10,
11+
fontSize: 12,
12+
marginLeft: 4,
1213
},
1314
networkDownTextLarge: {
1415
fontSize: 16,
1516
fontWeight: '700',
1617
},
18+
spinner: {
19+
backgroundColor: 'white',
20+
},
1721
});
1822

1923
export const NetworkDownIndicator: React.FC<{ titleSize: 'small' | 'large' }> = ({
@@ -27,7 +31,7 @@ export const NetworkDownIndicator: React.FC<{ titleSize: 'small' | 'large' }> =
2731

2832
return (
2933
<View style={styles.networkDownContainer} testID='network-down-indicator'>
30-
<Spinner />
34+
<Spinner height={12} style={styles.spinner} width={12} />
3135
<Text
3236
style={[
3337
styles.networkDownText,

0 commit comments

Comments
 (0)