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 { export interface RenderTabBarFnProps {
selectedPage: number selectedPage: number
onSelect?: (index: number) => void onSelect?: (index: number) => void
tabBarAnchor?: JSX.Element | null | undefined // Ignored on native.
} }
export type RenderTabBarFn = (props: RenderTabBarFnProps) => JSX.Element export type RenderTabBarFn = (props: RenderTabBarFnProps) => JSX.Element
+1 -1
View File
@@ -107,7 +107,7 @@ let PagerTabBar = ({
renderHeader?: () => JSX.Element renderHeader?: () => JSX.Element
onCurrentPageSelected?: (index: number) => void onCurrentPageSelected?: (index: number) => void
onSelect?: (index: number) => void onSelect?: (index: number) => void
tabBarAnchor?: JSX.Element tabBarAnchor?: JSX.Element | null | undefined
}): React.ReactNode => { }): React.ReactNode => {
const pal = usePalette('default') const pal = usePalette('default')
const {isMobile} = useWebMediaQueries() const {isMobile} = useWebMediaQueries()
+4 -6
View File
@@ -150,6 +150,8 @@ const styles = StyleSheet.create({
contentContainer: { contentContainer: {
borderLeftWidth: 1, borderLeftWidth: 1,
borderRightWidth: 1, borderRightWidth: 1,
// @ts-ignore web only
minHeight: '100vh',
}, },
container: { container: {
width: '100%', width: '100%',
@@ -163,12 +165,8 @@ const styles = StyleSheet.create({
marginLeft: 'auto', marginLeft: 'auto',
marginRight: 'auto', marginRight: 'auto',
}, },
row: { fixedHeight: {
// @ts-ignore web
contentVisibility: 'auto',
},
minHeightViewport: {
// @ts-ignore web only // @ts-ignore web only
minHeight: '100vh', height: '100vh',
}, },
}) })
+1
View File
@@ -110,6 +110,7 @@ export function PostThreadScreen({route}: Props) {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
prompt: { prompt: {
// @ts-ignore web-only
position: isWeb ? 'fixed' : 'absolute', position: isWeb ? 'fixed' : 'absolute',
left: 0, left: 0,
right: 0, right: 0,