Fixes and types
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
@@ -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',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user