diff --git a/apps/docs/src/content/docs/components/select.mdx b/apps/docs/src/content/docs/components/select.mdx index 0c6043d0..b05c23d1 100644 --- a/apps/docs/src/content/docs/components/select.mdx +++ b/apps/docs/src/content/docs/components/select.mdx @@ -66,54 +66,70 @@ Presents a selection of options for the user to choose from, activated by a butt ```tsx import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { - Select, - SelectContent, - SelectGroup, - SelectItem, - SelectLabel, - SelectTrigger, - SelectValue, + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectTrigger, + SelectValue, } from '~/components/ui/select'; +import { FullWindowOverlay } from 'react-native-screens'; +import { Platform, View } from 'react-native'; +import { PortalHost } from '@rn-primitives/portal'; +const IOS_PORTAL_HOST_NAME = 'modal-example'; + +export default function Example() { + const insets = useSafeAreaInsets(); + const contentInsets = { + top: insets.top, + bottom: insets.bottom, + left: 12, + right: 12, + }; -function Example() { - const insets = useSafeAreaInsets(); - const contentInsets = { - top: insets.top, - bottom: insets.bottom, - left: 12, - right: 12, - }; - - return ( - - ); + return ( + <> + + {Platform.OS === 'ios' && ( + + + + )} + + ); } ```