UNPKG

@gluestack-ui/select

Version:

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

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