廓形仪rn版本-技术调研
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

  1. 'use client';
  2. import React from 'react';
  3. import { Overlay } from '@gluestack-ui/overlay';
  4. import { cssInterop } from 'nativewind';
  5. cssInterop(Overlay, { className: 'style' });
  6. const Portal = React.forwardRef<
  7. React.ComponentRef<typeof Overlay>,
  8. React.ComponentProps<typeof Overlay>
  9. >(function Portal({ ...props }, ref) {
  10. return <Overlay {...props} ref={ref} />;
  11. });
  12. Portal.displayName = 'Portal';
  13. export { Portal };