react-native-select-dropdown
react-native-select-dropdown copied to clipboard
TestID still not available
I'm working with: import {render} from '@testing-library/react-native';
apprently the testID is not available when i try to access it
My Implementation:
<RNSelectDropdown
defaultValue={value}
data={options}
onSelect={(selectedOption: SelectItem) =>
onChange(selectedOption.value)
}
testID='testing'
onBlur={onBlur}
renderButton={() => (
<View style={styles.input}>
<Text>
{options.find(option => option.value === value)?.label ||
placeholder}
</Text>
</View>
)}
renderItem={(item: SelectItem) => (
<View style={styles.option}>
<Text>{item.label}</Text>
</View>
)}
/>