picker icon indicating copy to clipboard operation
picker copied to clipboard

touch area for items very small / unusable on android

Open schumannd opened this issue 6 years ago • 8 comments

I have not found a way to increase or position the items in the android picker. Is there a way to do that? Especially the non-dropdown mode with a set width becomes very buggy this way.

If this is not adaptable I don't see how this package can be used on android.

schumannd avatar Nov 13 '19 17:11 schumannd

Can you share more details??

chakrihacker avatar Jan 06 '20 18:01 chakrihacker

if I display the number 1-10 in the picker, the picker dropdown will be of about 10-20px width. If you try to increase the width (by e.g. setting style={ width: 100}), the toucharea of every seperate item is still only of 10-20px width. So way to small.

schumannd avatar Jan 07 '20 08:01 schumannd

Hi @schumannd it will be really great, if you could have some handy screenshot of current behavior and how are you expecting it to be

jainkuniya avatar Jan 07 '20 19:01 jainkuniya

Screenshot_20200409-172406

This screenshot was taken while holding down on "2". It shows the touch area (grey area) of "2" being very small. I would expect it to span the full width of the dropdown menu.

schumannd avatar Apr 09 '20 15:04 schumannd

I'm seeing the same issue. @schumannd out of curiosity, which device are you using?

Behaviour

As described by @schumannd, tap area is only as wide as the text value of the <Picker.Item>.

image

I've tried to fix it using the itemStyle prop on the <Picker> and the style prop on both <Picker> and <Picker.Item> with no joy.

Code

<Picker>
  {[{value: 'test', label: 'test'}].map((option, index) => (
    <Picker.Item
      key={option.value}
      value={option.value}
      label={option.label}
    />
  ))}
</Picker>

Conditions

App

React Native 0.62.2 (latest at time of writing)
React Native Picker 1.5.0 (latest at time of writing)

Device

Make Huawei
Model P20 Pro
OS Android Oreo 8.1

Extra Info

I'm not seeing the same issue on emulators for Pixel devices running:

  • Android Oreo 8.1
  • Android Q 10.0

ryanmaffey avatar May 15 '20 17:05 ryanmaffey

I have the same problem !

dstiglr avatar Aug 25 '20 22:08 dstiglr

Same. Any solution?

HDDRT avatar Oct 08 '20 07:10 HDDRT

How to increase touch area in iOS ?

tataprojectsit avatar Sep 28 '22 11:09 tataprojectsit