react-native-select-dropdown icon indicating copy to clipboard operation
react-native-select-dropdown copied to clipboard

TestID still not available

Open GibranPolonsky opened this issue 7 months ago • 0 comments

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>
            )}
          />

GibranPolonsky avatar Jul 13 '24 05:07 GibranPolonsky