Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed small styles things App #320

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Image,
useWindowDimensions,
useColorScheme,
StatusBar,
} from 'react-native'
import {
SafeAreaProvider,
Expand Down Expand Up @@ -170,12 +171,17 @@ function App() {

return (
<>
<StatusBar
barStyle="light-content"
backgroundColor={theme.colors.primary}
translucent={true}
/>
<ScrollView
style={{ backgroundColor: theme.colors.background }}
contentContainerStyle={[
styles.contentContainer,
styles.paddingSixteen,
{ paddingTop: insets.top },
{ marginTop: insets.top },
]}
>
<View style={isLarge && styles.surface}>
Expand Down Expand Up @@ -417,7 +423,7 @@ function App() {
great apps, they also always work great on the web too!
</Text>
</View>
<View style={[styles.row, styles.gap, styles.marginVerticalEight]}>
<View style={[styles.gap, styles.marginVerticalSixteen]}>
<Button
icon="github"
mode="contained-tonal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ exports[`renders DatePickerInput 1`] = `
<RNCSafeAreaProvider
onInsetsChange={[Function]}
style={
[
{
"flex": 1,
},
undefined,
]
{
"flex": 1,
}
}
/>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ exports[`renders DatePickerModal 1`] = `
<RNCSafeAreaProvider
onInsetsChange={[Function]}
style={
[
{
"flex": 1,
},
undefined,
]
{
"flex": 1,
}
}
/>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ exports[`renders DatePickerModalContent 1`] = `
<RNCSafeAreaProvider
onInsetsChange={[Function]}
style={
[
{
"flex": 1,
},
undefined,
]
{
"flex": 1,
}
}
/>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ exports[`renders DatePickerModalHeader 1`] = `
<RNCSafeAreaProvider
onInsetsChange={[Function]}
style={
[
{
"flex": 1,
},
undefined,
]
{
"flex": 1,
}
}
/>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ exports[`renders DatePickerModalHeaderBackground 1`] = `
<RNCSafeAreaProvider
onInsetsChange={[Function]}
style={
[
{
"flex": 1,
},
undefined,
]
{
"flex": 1,
}
}
/>
`;
Loading