File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import {FilterSection} from './section'
55import type { FilterType } from './types'
66import * as c from '@frogpond/colors'
77import { View } from 'react-native'
8+ import { useSafeAreaInsets } from 'react-native-safe-area-context'
89
910type Props < T extends object > = {
1011 anchor : RefObject < View >
@@ -16,9 +17,11 @@ type Props<T extends object> = {
1617export function FilterPopover < T extends object > ( props : Props < T > ) : JSX . Element {
1718 let { anchor, onClosePopover, visible} = props
1819 let [ filter , setFilter ] = useState < FilterType < T > > ( props . filter )
20+ let insets = useSafeAreaInsets ( )
1921
2022 return (
2123 < Popover
24+ displayAreaInsets = { insets }
2225 from = { anchor }
2326 isVisible = { visible }
2427 onRequestClose = { ( ) => onClosePopover ( filter ) }
You can’t perform that action at this time.
0 commit comments