Skip to content

Select Field Not Scrollable #1397

Closed Answered by G-C0der
G-C0der asked this question in Q&A
Discussion options

You must be logged in to vote

Using SelectScrollView fixed it:

import React from 'react';
import { SelectScrollView, Select, SelectIcon, SelectInput, SelectTrigger, Icon, ChevronDownIcon, SelectPortal, SelectBackdrop, SelectContent, SelectDragIndicatorWrapper, SelectDragIndicator, SelectItem } from "@gluestack-ui/themed";

interface SelectFieldProps {
  placeholder: string;
  options: { [key: string | number]: string }
}

export function SelectField({ placeholder, options }: SelectFieldProps) {
  return (
    <Select>
      <SelectTrigger variant="outline" size="md">
        <SelectInput placeholder={placeholder} style={{ paddingTop: 0, paddingBottom: 0 }} />
        <SelectIcon mr="$3">
          <Icon as={ChevronDow…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by G-C0der
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant