UNPKG

@gluestack-ui/select

Version:

A universal headless select component for React Native, Next.js & React

11 lines (10 loc) 406 B
import React, { forwardRef } from 'react'; import { Platform } from 'react-native'; export const SelectDragIndicatorWrapper = (StyledSelectDragIndicatorWrapper) => forwardRef(({ children, ...props }, ref) => { if (Platform.OS === 'web') { return <></>; } return (<StyledSelectDragIndicatorWrapper {...props} ref={ref}> {children} </StyledSelectDragIndicatorWrapper>); });