You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
426 B
17 lines
426 B
'use client';
|
|
import React from 'react';
|
|
import { Overlay } from '@gluestack-ui/overlay';
|
|
import { cssInterop } from 'nativewind';
|
|
|
|
cssInterop(Overlay, { className: 'style' });
|
|
|
|
const Portal = React.forwardRef<
|
|
React.ComponentRef<typeof Overlay>,
|
|
React.ComponentProps<typeof Overlay>
|
|
>(function Portal({ ...props }, ref) {
|
|
return <Overlay {...props} ref={ref} />;
|
|
});
|
|
|
|
Portal.displayName = 'Portal';
|
|
|
|
export { Portal };
|