Update web header and search
This commit is contained in:
parent
c5f28376c8
commit
e828f380e7
8 changed files with 291 additions and 144 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue