React Native Overflow Touchable is Not Working in Android

前端 未结 3 1109
[愿得一人]
[愿得一人] 2021-01-20 21:18

Please have a look at my Expo Snack.

Dropdown items are touchable in iOS but not in Android. Fixed container\'s height (grey box) causes this issue but I need to kee

3条回答
  •  甜味超标
    2021-01-20 21:55

    It seems like when dropdown expands, it flows outside of view because you have given fixed height.

    so for workaround you can use minHeight property instead of height.

    this will make sure that at least you get your minimum height and if needed it can use more height, like when you are expanding dropdown.

    correction is given below,

    dropdownContainer: {
        width:340,
        minHeight:115,// changed this from height:115
        ...
        ...
      },
    

提交回复
热议问题