AdelRedaa97 / react-native-select-dropdown

react-native-select-dropdown is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.
MIT License
320 stars 137 forks source link

Change Touchable Opacity . #51

Closed zeeshan-shabbir closed 2 years ago

zeeshan-shabbir commented 2 years ago

I want to change Touchable opacity when selected items. i can not figure out how to do this

amalte commented 2 years ago

+1

AdelRedaa97 commented 2 years ago

use selectedRowStyle and selectedRowTextStyle for styling the selected component they are added in v2.0.0

valn1 commented 1 year ago

Sorry, but this does not fix the issue as the opacity is set here int he lib: `<TouchableOpacity disabled={disabledIndexs?.includes(index)} activeOpacity={0.8} style={mergeStyles(styles.dropdownRow, rowStyle, isSelected && selectedRowStyle)} onPress={() => onSelectItem(item, index)}> {renderCustomizedRowChild ? (

{renderCustomizedRowChild(item, index, isSelected)}
      ) : (
        <Text
          numberOfLines={1}
          allowFontScaling={false}
          style={mergeStyles(styles.dropdownRowText, rowTextStyle, isSelected && selectedRowTextStyle)}>
          {rowTextForSelection ? rowTextForSelection(item, index) : item.toString()}
        </Text>
      )}
    </TouchableOpacity>`

    for someone to change the active opacity, they would need to actively edit the lib using a patch to change the value directly