Open macvish opened 1 year ago
hi @macvish , Are you using default or customize?
hi @macvish , Are you using default or customize? @hoaphantn7604
I don't understand what you mean by default or customize, this is what I have currently rendered
....
import { MultiSelect } from 'react-native-element-dropdown'
...
return <Flex style={{ marginBottom: 20 }}>
<Text weight='bold' style={styles.label}>{!!label && label}</Text>
<MultiSelect
{...props}
style={styles.dropdown}
placeholderStyle={styles.placeholderStyle}
selectedTextStyle={styles.selectedTextStyle}
inputSearchStyle={styles.inputSearchStyle}
iconStyle={styles.iconStyle}
placeholder={placeholder}
value={selectedValues}
onChange={onChangeValues}
renderSelectedItem={renderSelectedItem}
selectedStyle={styles.selectedStyle}
renderItem={renderItem}
activeColor={colors.primaryLight}
/>
</Flex>
...
The problem seems to be in the renderSelectedItem prop, I had it returning null and then I changed it to return an empty view, which worked for me.
before:
renderSelectedItem={() => { return null }}
after:
renderSelectedItem={(item, unSelect) => (<View />)}
Hi, I'm currently experiencing an issue with Multiselect:
React native version: 0.70.5