mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix forwarded ref (#4348)

authored by danabra.mov and committed by

GitHub c352e0f8 e7968bc8

+12 -9
+12 -9
src/view/com/util/Views.web.tsx
··· 32 32 desktopFixedHeight?: boolean | number 33 33 } 34 34 35 - export const CenteredView = React.forwardRef(function CenteredView({ 36 - style, 37 - sideBorders, 38 - topBorder, 39 - ...props 40 - }: React.PropsWithChildren< 41 - ViewProps & {sideBorders?: boolean; topBorder?: boolean} 42 - >) { 35 + export const CenteredView = React.forwardRef(function CenteredView( 36 + { 37 + style, 38 + sideBorders, 39 + topBorder, 40 + ...props 41 + }: React.PropsWithChildren< 42 + ViewProps & {sideBorders?: boolean; topBorder?: boolean} 43 + >, 44 + ref: React.Ref<View>, 45 + ) { 43 46 const pal = usePalette('default') 44 47 const {isMobile} = useWebMediaQueries() 45 48 if (!isMobile) { ··· 58 61 }) 59 62 style = addStyle(style, pal.border) 60 63 } 61 - return <View style={style} {...props} /> 64 + return <View ref={ref} style={style} {...props} /> 62 65 }) 63 66 64 67 export const FlatList_INTERNAL = React.forwardRef(function FlatListImpl<ItemT>(