Fixes and types

This commit is contained in:
Dan Abramov
2023-12-23 01:53:46 +00:00
parent d83a9aceab
commit b7b46ea6fb
4 changed files with 7 additions and 7 deletions
+1
View File
@@ -17,6 +17,7 @@ export interface PagerRef {
export interface RenderTabBarFnProps {
selectedPage: number
onSelect?: (index: number) => void
tabBarAnchor?: JSX.Element | null | undefined // Ignored on native.
}
export type RenderTabBarFn = (props: RenderTabBarFnProps) => JSX.Element
+1 -1
View File
@@ -107,7 +107,7 @@ let PagerTabBar = ({
renderHeader?: () => JSX.Element
onCurrentPageSelected?: (index: number) => void
onSelect?: (index: number) => void
tabBarAnchor?: JSX.Element
tabBarAnchor?: JSX.Element | null | undefined
}): React.ReactNode => {
const pal = usePalette('default')
const {isMobile} = useWebMediaQueries()
+4 -6
View File
@@ -150,6 +150,8 @@ const styles = StyleSheet.create({
contentContainer: {
borderLeftWidth: 1,
borderRightWidth: 1,
// @ts-ignore web only
minHeight: '100vh',
},
container: {
width: '100%',
@@ -163,12 +165,8 @@ const styles = StyleSheet.create({
marginLeft: 'auto',
marginRight: 'auto',
},
row: {
// @ts-ignore web
contentVisibility: 'auto',
},
minHeightViewport: {
fixedHeight: {
// @ts-ignore web only
minHeight: '100vh',
height: '100vh',
},
})
+1
View File
@@ -110,6 +110,7 @@ export function PostThreadScreen({route}: Props) {
const styles = StyleSheet.create({
prompt: {
// @ts-ignore web-only
position: isWeb ? 'fixed' : 'absolute',
left: 0,
right: 0,