import React from 'react'; import type { ViewStyle } from 'react-native'; import { ScrollView, StyleSheet } from 'react-native'; import { MultiSelectedOptions } from '../multi-selected-options'; import { SelectInput } from '../select-input'; import { SelectText } from '../select-text'; import { useMultiSelect } from './multi-select.hooks'; import type { MultiSelectProps } from './multi-select.types'; export const MultiSelect = ({ selectedOptions, separatedMultiple, widthThreshold, }: MultiSelectProps) => { const { disabled, isSearchable } = useMultiSelect({ selectedOptions, }); const renderOptions = () => { if (!selectedOptions) { return isSearchable ? null : ; } return separatedMultiple ? null : ( ); }; return ( {isSearchable && } {renderOptions()} ); }; type Styles = { container: ViewStyle; }; const styles = StyleSheet.create({ container: { flex: 1, }, });