Skip to content

Commit e4cba0b

Browse files
authored
Merge pull request #321 from SoyDiego/fixed-structure-styles
Fixed small styles things App
2 parents 09d684a + f086daf commit e4cba0b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

example/src/App.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
Image,
88
useWindowDimensions,
99
useColorScheme,
10+
StatusBar,
1011
} from 'react-native'
1112
import {
1213
SafeAreaProvider,
@@ -170,12 +171,17 @@ function App() {
170171

171172
return (
172173
<>
174+
<StatusBar
175+
barStyle="light-content"
176+
backgroundColor={theme.colors.primary}
177+
translucent={true}
178+
/>
173179
<ScrollView
174180
style={{ backgroundColor: theme.colors.background }}
175181
contentContainerStyle={[
176182
styles.contentContainer,
177183
styles.paddingSixteen,
178-
{ paddingTop: insets.top },
184+
{ marginTop: insets.top },
179185
]}
180186
>
181187
<View style={isLarge && styles.surface}>
@@ -417,7 +423,7 @@ function App() {
417423
great apps, they also always work great on the web too!
418424
</Text>
419425
</View>
420-
<View style={[styles.row, styles.gap, styles.marginVerticalEight]}>
426+
<View style={[styles.gap, styles.marginVerticalSixteen]}>
421427
<Button
422428
icon="github"
423429
mode="contained-tonal"

0 commit comments

Comments
 (0)