Update web header and search

This commit is contained in:
Paul Frazee 2023-02-23 01:07:20 -06:00
parent c5f28376c8
commit e828f380e7
8 changed files with 291 additions and 144 deletions

View file

@ -22,7 +22,6 @@ import {
View,
ViewProps,
} from 'react-native'
import {useTheme} from 'lib/ThemeContext'
import {addStyle, colors} from 'lib/styles'
export function CenteredView({
@ -40,15 +39,10 @@ export const FlatList = React.forwardRef(function <ItemT>(
}: React.PropsWithChildren<FlatListProps<ItemT>>,
ref: React.Ref<RNFlatList>,
) {
const theme = useTheme()
contentContainerStyle = addStyle(
contentContainerStyle,
styles.containerScroll,
)
contentContainerStyle = addStyle(
contentContainerStyle,
theme.colorScheme === 'dark' ? styles.containerDark : styles.containerLight,
)
return (
<RNFlatList
contentContainerStyle={contentContainerStyle}
@ -60,17 +54,12 @@ export const FlatList = React.forwardRef(function <ItemT>(
export const ScrollView = React.forwardRef(function (
{contentContainerStyle, ...props}: React.PropsWithChildren<ScrollViewProps>,
ref: React.Ref<RNFlatList>,
ref: React.Ref<RNScrollView>,
) {
const theme = useTheme()
contentContainerStyle = addStyle(
contentContainerStyle,
styles.containerScroll,
)
contentContainerStyle = addStyle(
contentContainerStyle,
theme.colorScheme === 'dark' ? styles.containerDark : styles.containerLight,
)
return (
<RNScrollView
contentContainerStyle={contentContainerStyle}