Skip to content

Dropdown list placement issue in realme devices #350

@MrFarhan

Description

@MrFarhan

Dropdown is working perfect in all android and ios devices except realme device in which dropdown list is opening above the dropdown input, video is attached for refference.

Minimal code snippet.

    <View style={[styles.outer, viewContainerStyle]}>
      <View style={styles.fieldWrapper}>
        <Dropdown
          flatListProps={{
            onEndReachedThreshold: 0.5,
            onEndReached: () => dropdownEndReachedCallback?.(),
          }}
          dropdownPosition="bottom"
          disable={disabled}
          style={[styles.dropdown, dropdownStyle]}
          placeholderStyle={[
            styles.placeholderStyle,
            textAlignment === 'left' ? styles.textLeft : styles.textCenter,
            textAlignment === 'left' ? styles.paddingLeft : styles.noPadding,
          ]}
          selectedTextStyle={[
            styles.selectedTextStyle,
            disabled ? styles.disabledColor : styles.enabledColor,
            textAlignment === 'left' ? styles.textLeft : styles.textCenter,
            textAlignment === 'left' ? styles.paddingLeft : styles.noPadding,
            styles.fontWeight500,
          ]}
          inputSearchStyle={styles.inputSearchStyle}
          iconStyle={styles.iconStyle}
          data={options}
          search={search}
          maxHeight={300}
          labelField="value"
          valueField="key"
          placeholder={placeholder}
          searchPlaceholder="Search..."
          value={value}
          onFocus={() => setIsFocus(true)}
          onBlur={() => setIsFocus(false)}
          itemTextStyle={styles.itemTextStyle}
          onChange={(item: any) => {
            setValue(item.key);
            setIsFocus(false);
          }}
        />
      </View>
    </View>
Screen.Recording.2025-08-12.at.4.36.16.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions